Closed
Description
I'm using Neovim as LSP client on Windows. When Neovim cannot detect a workspace for a given Python document, it runs in "single file mode". Thath is, the workspace root directory is passed to the language server as empty string.
Now, in flake8_lint.py, ever since commit 59de0f81, the flake8 executable is run with the working directory set to the workspace root directory. However, on Windows, giving an empty working directory results in Popen throwing a WinError 123. Thus, flake8 is never successfully started.
Maybe the working directory should be set to the document directory instead if the workspace is indeed empty.