Closed petobens closed 1 year ago
Hmm it must be a difference in how the lsp clients work, it works fine for me in dart, sorry about that! What lsp client are you using so I can try to reproduce the issue?
No problem! I'm using pyright in python (and also null-ls plugin).
I don't have the dart lsp server to work with but my assumption would be that the dart lsp server isn't sending back a 'done' message. Or somehow the messages are out of order. @rorystephenson do you have an example of a typical set of messages from the dart lsp server?
I also have this issue when the server will stay In Progress forever
[null-ls] 🌒 Initializing…: (In Progress) [copilot] 🌒 Initializing…: (In Progress)
:LspInfo
3 client(s) attached to this buffer:
Client: null-ls (id: 1, bufnr: [1])
filetypes: sh, css, vue, handlebars, typescriptreact, less, yaml, graphql, jsonc, json, typescript, markdown, html, scss, markdown.mdx, javascript, javascriptreact, lua, luau
autostart: false
root directory: /Users/strdr4605/.dotfiles
cmd: <function>
Client: sumneko_lua (id: 2, bufnr: [1])
filetypes: lua
autostart: true
root directory: /Users/strdr4605/.dotfiles/nvim
cmd: lua-language-server
Client: copilot (id: 3, bufnr: [1])
filetypes:
autostart: false
root directory: /Users/strdr4605/.dotfiles
cmd: node /Users/strdr4605/.local/share/nvim/site/pack/packer/opt/copilot.lua/copilot/index.js
@strdr4605 is this all servers or just some servers? Which servers? (do all the servers in your post above exhibit this, or just some?)
It looks like; I am not advanced in this. How can I test that it affects all servers
@strdr4605 sorry I was unclear. I mean do all servers that you use exhibit this issue? Your video seems to say "yes, all servers I use exhibit this issue."
I am having this issue on all language servers (terraform/powershell/bicep/yaml/bash/dockerfile/etc...)... thanks for the plugin by the way!
I am able to replicate this. I will have a look.
If I comment out the autocmd for LspAttach
this problem goes away. Still trying to see why.
I believe the issue is resolved in the most recent master
. Please LMK.
Hi @WhoIsSethDaniel ! I think that this is mostly fixed however for pyright (python lsp) I'm always seeing the commenced icon/message.. Can that be fixed?
@petobens It's hard to say. I'm not familiar with pyright (or python) so it may be difficult to test. I don't see this issue and have had no luck replicating it. I may need some assistance from you to help resolve the issue.
It seems the reason is that pyright
doesn't send status messages. The PR that triggered this (#4) doesn't account for this scenario and simply stuffs an "Initializing" message into the message queue. I may have to make the changes in #4 (as well as changes I made in #7) optional and based on server name. I don't entirely understand the problem #4 was trying to solve and I am assuming that it solves some problem in at least a small number of LSP servers.
Great that you managed to track it down! Thanks
I've re-read #4 and it simply allows for a status update more quickly than what was being observed. This seems useful for LSP servers that take a long time to send their first status message. I'll need to think about how to deal with this in config.
The plugin may also be able to retrieve server capabilities and see if the server claims to send status messages. That may be the best solution assuming it is reliable.
It doesn't look like the sever capabilities announce that status messages will be forthcoming. If anyone knows any different please let me know.
@petobens you can now hide
a server from ever showing status. e.g.
{ `lsp_progress', hide = { 'pyright' } }
Thank! I believe this issue is now resolved. Feel free to close
@rorystephenson @WhoIsSethDaniel after https://github.com/WhoIsSethDaniel/lualine-lsp-progress.nvim/pull/4 I'm always seeing the In Progress/commenced message. I want lualine only to display when the lsp is loading. I tried removing the commenced bit from the following config but without success:
Any pointers are greatly appreciated.
Also is there a way to disable showing null-ls? Thanks in advance for the help!