Skip to content

Check dmypy status and kill hung daemons before run #10

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

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

asford
Copy link

@asford asford commented Jun 13, 2021

The dmypy daemon process can end up in a hung state for many reasons,
and may persist in a hung state across lsp sessions.

dmypy run will block indefinitely the daemon process is unresponsive,
blocking the lsp server and preventing diagnostics.

Add dmypy status check before dmypy run and kill the daemon if
status is non-zero before diagnostic request. The subsequent run will
then bring up a fresh daemon.

The dmypy daemon process can end up in a hung state for many reasons,
and may persist in a hung state across lsp sessions.

`dmypy run` will block indefinitely the daemon process is unresponsive,
blocking the lsp server and preventing diagnostics.

Add `dmypy status` check before `dmypy run` and kill the daemon if
status is non-zero before diagnostic request. The subsequent run will
then bring up a fresh daemon.
@Richardk2n Richardk2n merged commit ac99feb into python-lsp:master Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants