Skip to content
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

x/tools/gopls: server stucks with a lot of meaningless messages of errors #32857

Open
inliquid opened this issue Jun 29, 2019 · 9 comments

Comments

Projects
None yet
3 participants
@inliquid
Copy link

commented Jun 29, 2019

VS Code.
Actually this happens all the time, if you work more than 30 min with some editing. It just stops working normally forcing to restart VS Code. And in fact there are no errors in files. See screenshot and logs for more information.
изображение

[Error - 23:30:16] unable to check package for file:///c:/***/***/***/git:/c:/***/***/***/pkg/config/defaults.go%3F%7B%22path%22:%22c:/***/***/***/pkg/config/defaults.go%22,%22ref%22:%22~%22%7D: go/packages.Load: no packages found for c:\***\***\***\git:\c:\***\***\***\pkg\config\defaults.go?{"path":"c:\***\***\***\pkg\config\defaults.go","ref":"~"}
[Error - 23:30:53] unable to check package for file:///c:/***/***/***/git:/c:/***/***/***/init.go%3F%7B%22path%22:%22c:/***/***/***/init.go%22,%22ref%22:%22~%22%7D: go/packages.Load: no packages found for c:\***\***\***\git:\c:\***\***\***\init.go?{"path":"c:\***\***\***\init.go","ref":"~"}

@gopherbot gopherbot added this to the Unreleased milestone Jun 29, 2019

@gopherbot gopherbot added the gopls label Jun 29, 2019

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

@inliquid: Can you confirm that this happens with the latest version of gopls? You can update by running go get -u golang.org/x/tools/gopls@master.

@inliquid

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

I'm updating gopls from master regularly. Gonna update now and see if this happens again. It also may be somehow related to vscode-go extension itself, because recently I seen quite similar messages from linter output.

@inliquid

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

@stamblerre I think -u is not needed when you are querying @master with modules. As I understand -u in this command will force to update dependencies of gopls module.

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

Hm, well LSP is marked as the source of the diagnostic, so I expect it is probably gopls in this case. Please let me know if you still see this issue on master.

And yes, -u updates the dependencies, but I typically recommend it when updating to master because some of the fixes are in go/packages, which is in the x/tools repo, and as a result, a dependency of gopls.

@inliquid

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

Yep, still getting these errors;
изображение

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

Are you able to share the full gopls for this case?

@inliquid

This comment has been minimized.

Copy link
Author

commented Jul 2, 2019

Sorry, what do you mean?

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jul 2, 2019

Oh, I'm sorry, typo - meant to say - can you share the full gopls log?

@inliquid

This comment has been minimized.

Copy link
Author

commented Jul 2, 2019

Ah, ok when I next time see this error I'll share more logs.

@stamblerre stamblerre changed the title x/tools/cmd/gopls: server stucks with a lot of meaningless messages of errors x/tools/gopls: server stucks with a lot of meaningless messages of errors Jul 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.