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 beforedmypy run
and kill the daemon if status is non-zero before diagnostic request. The subsequent run will then bring up a fresh daemon.