-
Notifications
You must be signed in to change notification settings - Fork 56
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
Error with gopls #19
Comments
I was able to determine that the value of |
Gopls must be making some enormous progress to warrant some 5445-character long message... There's obviously no way that even fits on a screen, so I'll probably just cap it at some sane amount, but that does beg the question: what should the behavior be when we encounter these kinds of unreasonably long messages? Should I just truncate it? |
I used I could probably print the whole line to know of certain what it is getting stuck on. I think truncating is a reasonable result, perhaps with an ellipse to indicate such. |
I got this too. edit
|
@ttys3 can you check out the |
@j-hui OK, I'll upload a zip with demo project to re-produce this: steps to reproducegopls version:
go version: download https://github.com/j-hui/fidget.nvim/files/7959009/fidget-nvim-go-mod-demo.zip and unzip it. cd fidget-nvim-go-mod-demo nvim go.mod the error occurs |
@j-hui tried |
thanks @ttys3 ! I was able to repro the issue. Turns out |
(Also, why is this message even coming through the progress notification? This seems like a diagnostic message rather than a progress message. And why does the task never complete? Perhaps we should file an issue to gopls maintainers.) |
I have not tried the branch (yet), but during my own experimentation with passing |
@ttys3 may I create an issue on gopls with the test repo you sent me? |
Using the I'll continue to use this branch throughout the day and if I see any different behaviour report it here. |
Of course, it is just a demo and does not involve any private information |
I am getting the constant running
This leaves the fidget status in the corner, with the spinner continuing. Edit: just saw your comment here golang/go#50885 (comment) |
I landed #20 onto main, so this plugin should no longer spew errors when encountering extremely long messages. The remaining issue with gopls spewing an extremely verbose diagnostic error and refusing to complete is tracked by golang/go#50885. If it turns out that the correct thing to do is to indeed timeout, I'll create another issue for that. |
Just wanted to add on to this with some information. I just had to force quit out of my terminal program with Activity Monitor telling me that neovim was using 100GB+ of memory. Fidget was running waiting for an update from gopls while I was involved in a meeting. |
@ssoriche I'm very sorry to hear that. There's obviously no reason Fidget should need to allocate that much memory; I'll have to investigate where the leak is coming from. |
Thank you @j-hui, I just wanted to document that |
I'm receiving the following error message when editing Go with gopls running:
The error repeats over and over again, so far I haven't been able to find the end of it.
The text was updated successfully, but these errors were encountered: