-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
haskell-language-server sends lots of "dummy" progress messages with default haskell-tools config #295
Comments
Hey 👋 Those messages are shown by fidget.nvim, which recently got an update. You can refer to its documentation for how to limit the number of LSP messages to show. |
Hi there! Fidget maintainer here; I'm actually also encountering this bug myself: j-hui/fidget.nvim#171 I've been doing some logging and I found that haskell-tools seems to be sending some "dummy" progress messages. For instance, here's are three messages I received after making a small change and writing my buffer:
Note that haskell-tools completes the task with token I also tested this HLS alone (i.e., configuring it without haskell-tools.nvim), and I don't get these stale messages. Update: it also doesn't seem to happen on Neovim nightly (i.e., 0.10.0). It only happens with 0.9.4 for me. |
I wasn't able to track down where that empty message was coming from (and gave up), but I added an option to Fidget that mitigates it in j-hui/fidget.nvim@fe60ce7 |
@j-hui 🤔 interesting. I'll reopen this issue and bisect on the config on Friday. Thanks for the fix on your end 🙏 |
@j-hui I have set Which OS and haskell-language-server version are you using? Do you have a project I can try to reproduce this with? I found this hls issue, which seems to be related. |
Hey @mrcjkb thanks for taking a look into this, and sorry for not responding sooner. I'm on macOS with haskell-language-server version: 1.10.0.0 (GHC: 8.10.7). Maybe it's just because mine is so out of date. I took a look at that issue and it does indeed look related, but I haven't had time this week to dig any deeper myself. As for the project, it was basically just a bare project created using |
No problem 😄 I'm not too sure how to approach this at the moment anyway. Thanks for the info, it'll definitely be useful when I do get back to this. |
I can confirm this. |
@bwkam are you (or a plugin you're using) having any issues with it? |
I was able to reproduce OP's issue, hls keeps sending these dummy messages |
I understand that. 😄 |
I don't bandwidth to dig into this just now, but for archaeological purposes: @bwkam can you please include the versions of HLS, Neovim, haskell-tools.nvim, and fidget.nvim you're using? Thanks! |
Neovim: 0.9.4 |
|
Hello there! I was having the same issue and managed to resolve it with the |
Neovim version (nvim -v)
v0.9.2
Operating system/version
Windows 11
Output of
:checkhealth haskell-tools
OK
How to reproduce the issue
Editing any Haskell file triggers a cascade of "In progress...WARN" log entries in the bottom right hand corner of the nvim window. Nothing appears broken but its inconvenient.
Expected behaviour
I expect it not to show this or to be able to hide it.
Actual behaviour
see above
Log files
No response
The minimal config used to reproduce this issue.
{
'mrcjkb/haskell-tools.nvim',
version = '^3', -- Recommended
ft = { 'haskell', 'lhaskell', 'cabal', 'cabalproject' },
},
The text was updated successfully, but these errors were encountered: