-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: language server stops working at valid file with "has errors, skipping type-checking" #32855
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
Comments
We should probably improve that error message, but that means that there were errors determining the files and dependencies for the package. Are you opening VSCode from the root of your module? |
Yes, VS Code workspace is at the root of module. |
I know you updated to master, as per our discussion on your other issue. Do you still see these errors on master? If so, what is the output of |
I'll test and report. |
same issue |
@inliquid: Is this still an issue for you? |
@stamblerre it is. |
@inliquid: What is the output of |
I will check when I have time to. |
I'm having a similar problem to the above in gopls with a module package. If I run
edit: Nevermind, the issue I found was that one of the files in my package had the wrong package name. It would be nice if there was a way for gopls to detect that issue. |
@cardonator: it looks like you are also using an old version of gopls. You can upgrade by running “GO111MODULE=on go get golang.org/x/tools/gopls@latest”. |
Ah, thanks for the command. I could tell I was on an old version but not why it wasn't updating. 👍 |
This issue seems to be fairly old and a lot has changed in |
VS Code, see screenshot:

These messages appear infinitely with
gopls
simply not working. File is valid, btw (but even if it was not, how am I supposed to work? non-sense if it can only work with files with no errors).Tried both
@latest
and@master
.The text was updated successfully, but these errors were encountered: