Open wuleninja opened 4 years ago
It sounds like gopls
may have crashed in this case. Is there any way for you to view the gopls
logs when this happens?
There does not seem to be any documentation about how to access the gopls
logging through this package.
The fact that it works right after being installed, could it be a clue ? It's like the installation of ide-gopls
manages to launch gopls
correctly, whereas its launching at Atom's startup does not.
The tips here may prove useful in investigating. I likely won't have a chance to look at this for a while, but that may be a place to start.
Thanks ! I've started looking into it, though I'm not very at ease with debugging in this kind of environment.
Looks like disabling / enabling the package again also works as a workaround.
I experience the same problem. I played around a bit and tried to figure out what the current state of the art with all the packages and their configuration might be. It is currently pretty complicated to get Golang IDE features right. Starting Atom with open *.go
files causes gopls
to crash.
Disabling/enabling ide-gopls
and atom-ide-ui
seems to resolve the problem as a workaround. Closing all Golang source files and starting Atom seems then also to be fine and no crashing of gopls
appears to happen.
I cannot really do more than report this but would be curious to know if someone is looking at the issue. I am afraid hacking go in Atom becomes a dying art.
If you can get a gopls
log when you see this, I can advise about what might be causing gopls
to crash.
I cannot really do more than report this but would be curious to know if someone is looking at the issue. I am afraid hacking go in Atom becomes a dying art.
Unfortunately, this does seem to be the case. The LSP client library on which this extension depends is used by all Atom LSP extensions, and it does not support recent versions of the protocol (https://github.com/atom/atom-languageclient/issues/280). I would suggest trying out VS Code as an alternative since it is quite similar to Atom. You can also see more details about popular Go editors in the Developer Tools section of the Go 2019 user survey: https://blog.golang.org/survey2019-results.
Looks like I am riding a dead horse. 🙈 I tried VS Code recently but it smelled too much like Windows 95. Can you tell me where I find the gopls
logs?
It looks like you will need to add this configuration: https://github.com/atom/atom-languageclient#debugging.
So what does it tell you when you debug it on your end? How can the issue be fixed?
I'm sorry, but I will likely not have time to debug this issue, particularly since it seems like there is an existing workaround. I'm happy to advise on gopls
-specific issues, but fixes for editor-specific issues will have to be made by community contributors.
Description
ide-gopls
does not load at Atom's startup.Steps to Reproduce
ide-gopls
installed.Expected behavior:
No error hint.
Actual behavior:
2 error hints (red) :
then
Reproduces how often:
Always.
Versions
Additional Information
OS : macOS 10.15.3
Current workaround
ide-gopls
ide-gopls