-
Notifications
You must be signed in to change notification settings - Fork 194
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
Failed to load hook pylsp_lint: [Errno 2] No such file or directory: '' #369
Milestone
Comments
Same here, neovim log:
|
Hey @Ultimator14, thanks for reporting this problem and finding a solution for it! Would you like to submit a pull request with your fix? |
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this issue
May 21, 2023
## Version 1.7.3 (2023/05/15) ### Issues Closed * [Issue 369](python-lsp/python-lsp-server#369) - Failed to load hook pylsp_lint: [Errno 2] No such file or directory: '' ([PR 371](python-lsp/python-lsp-server#371) by [@Ultimator14](https://github.com/Ultimator14)) In this release 1 issue was closed. ### Pull Requests Merged * [PR 377](python-lsp/python-lsp-server#377) - Update yapf requirement to 0.33+, by [@bnavigator](https://github.com/bnavigator) * [PR 371](python-lsp/python-lsp-server#371) - Fix empty cwd value for pylint, by [@Ultimator14](https://github.com/Ultimator14) ([369](python-lsp/python-lsp-server#369)) * [PR 364](python-lsp/python-lsp-server#364) - Add Arch Linux installation command to Readme, by [@GNVageesh](https://github.com/GNVageesh) In this release 3 pull requests were closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When opening a standalone file (that does not have a project root), pylint crashes and no diagnostics are displayed.
The failing code is
with
document._workspace.root_path
being an empty string. The problem is that the Popen cwd argument is always set, regardless of the root_path. To make this work, the value should be set to the directory of the file if no root path exists.This works for me
Pylsp version: 1.7.2
Editor: Neovim: 0.8.3
The text was updated successfully, but these errors were encountered: