-
Notifications
You must be signed in to change notification settings - Fork 216
Progress Broken in Nvim #374
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
Comments
I believe the culprit is this PR #328 Reverting to 1.7.1 brings back working progress indicators |
Hey @ibrokemypie, thanks for reporting. @syphar, could you take a look at this one? |
@ccordoba12 yep, currently on a train / on the move but I can check it out the next days. @ibrokemypie are all progress messages missing? diagnostics should be async, if I recall correctly. |
Not sure, the autoimport caching is the only progress message I have noticed with pylsp, though that could just be because other progress messages are completed too fast to see. |
I did some first digging. This boils down to the past conflict between synchronous handlers, and trying to initialize the progress token, cc @ccordoba12 . The methods used for the initialization are A first test of this made the progress reappear (but completion broke, need to check this). Of course I don't know (yet) if there are any side-effects. |
also after digging, progress for diagnostics still works |
Since I don't know much about
|
I don't have time to take a look at this right now, but I don't think it'd be an easy task to make those methods async.
Yep, I think that's the best we can do for now, even if it doesn't follow the protocol. |
Same issue with I'm using pylsp as a LSP server for my Python code with Neovim 0.9.2 and settings = {
pylsp = {
-- configurationSources = { 'pycodestyle' },
plugins = {
flake8 = { enabled = true },
yapf = { enabled = true },
pydocstyle = { enabled = true },
pyflakes = { enabled = false },
pycodestyle = { enabled = false },
mccabe = { enabled = false },
jedi_completion = { enabled = false },
rope_completion = { enabled = true },
},
}, When I try to complete code, I have identical logs with errors :
In this case, LSP code completion doesn't work using Rope. If I modify my settings to use Jedi instead of Rope, this issue is not present and code completion works as expected. |
now that's an interesting error, thank you for the reproduction steps! |
After doing git bisect (if i did everything right), suspected commit is this: de87a80 is the first bad commit commit de87a800b198f97517032155c077e596b7d8b608
Author: Tobias Krabel <tobiaskrabel@gmx.de>
Date: Fri Dec 22 23:31:26 2023 +0100
Make autoimport cache generation non-blocking (#499) I'll try to figure out how to fix it. |
This is temporary fix, until someone can make proper fix by resolving issue with thread, seems like it just hungs indefinitely instead of reporting progress. Also, this thread does not exit properly, and pylsp does not exit after editor is closed. Refs python-lsp#374
I have pylsp set up in neovim through lspconfig, as well as the plugin fidget.nvim to show me lsp progress. This was working fine previously, but has since stopped working, filling my lsp log with messages such as the below. This is a pain because I want to know the progress of the autoimport cache as that feature doesn't seem to be working for me right now.
python-lsp-server version 1.7.2-1
neovim version 0.9.0
nvim-lspconfig commit 427378a
The config for python lsp is as below:
The text was updated successfully, but these errors were encountered: