-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dmypy
is not killed when python-lsp exits
#88
Comments
It seems running I tried hacking the code, I removed all the calls to This is what I did: if not dmypy:
# ...
else:
# Run to use existing daemon or restart if required
args = ["--status-file", dmypy_status_file, "daemon", "--"] + apply_overrides(
args, overrides
)
if shutil.which("dmypy"):
# dmypy exists on path
# -> use mypy on path
log.info("dmypy run args = %s via path", args)
completed_process = subprocess.run(
["dmypy", *args], capture_output=True, **windows_flag, encoding="utf-8"
)
report = completed_process.stdout
errors = completed_process.stderr
exit_status = completed_process.returncode
else:
# dmypy does not exist on path, but must exist in the env pylsp-mypy is installed in
# -> use dmypy via api
log.info("dmypy run args = %s via api", args)
report, errors, exit_status = mypy_api.run_dmypy(args) This has also the side effect that now |
Where do you get the |
That could be a possibility, yes. It would be also better to run |
Interestingly this is not in the doc. Also, |
Yes, it's confusing, I know. I just saw that option and ran it and then I saw how
I can take a look there, yes. I can also file a bug/feature request to
I'm running Linux. |
I'm using Neovim with its native LSP client.
If I close the editor I still see an instance of
dmypy
up and running.When editing a
.py
file I can see the follwing usingpstree -lp
:It seems to be there's one instance of
dmypy
which in fact is a child process ofpylsp
, this instance gets killed when I close my editor (and by extension,pylsp
too). But there's another instance which seems to be running in the background.These are my settings:
The text was updated successfully, but these errors were encountered: