-
Notifications
You must be signed in to change notification settings - Fork 645
The gopls server crashed when upgrade vscode-go to 0.10.0 #2459
Comments
Can you try switching the flag to |
@stamblerre Yes, it works! So the README.md file needs to be updated.
|
Thanks for reporting @gotoxu! @stamblerre Was that intentional? Do you plan to keep that or move back to |
@ramya-rao-a: Yes, it was. I think we will likely stick with Perhaps we could add some additional handling for invalid flags so that they don't completely crash the server, though I'm not sure how that would look. I expect it would have to be in the extension, so that it could notify the user that they've passed an incorrect flag. |
We can't handle all invalid flags, but we definitely can handle this one. |
The fix is out in the update I just released (0.10.1) Thanks again for reporting @gotoxu! |
I am getting this error as well but on
Golang version is.
|
@wolfeidau: What flags are you passing to the language server? |
@stamblerre I didn't change or update any settings for gopls, just did the upgrade to vscode-go. Ended up cleaning out go modules cache to fix this, not sure what was up. |
@wolfeidau: Glad it's working now, thanks for reporting this. Please file an issue here if you encounter this again. |
I am also getting this error on VS Code version is:
golang version is:
Cleaned the modules cache and reinstalled the extension, but neither helped. Adding the |
Do you see "gopls" under the list of "Tasks" in the output panel? |
@stamblerre, Thanks, I see it now. I was able to get a stacktrace of the crash:
Let me know if you want me to create a new issue. |
@adk9: what version of gopls are you currently using? There is no longer a |
I'm not sure what version I was running but updating/reinstalling Go tools seems to have fixed this and a host of other issues I was seeing.
Thanks! |
I just upgraded vscode-go to 0.10.0, but once I open the project I found that vscode has been reporting gopls crashed:
It works fine in version 0.9.2, or change gopls to bingo can also return to normal.
This is my vscode-go related configuration:
The text was updated successfully, but these errors were encountered: