-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/gopls: 'no file information for file' problem #32142
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
I notice your GOPATH is set to Checked out into my GOPATH, or after running go mod init it works fine for me. |
@bitfield, can you confirm your When you say “It builds correctly and passes tests on |
Please provide Playground links and/or a |
The build info for x/tools in your description shows a commit prior to the fix for a similar issue you opened previously (#31712 (comment)). You may want to try updating gopls and see if it persists! There’s a good chance it’s an entirely different issue since that “no information” error seems to be a bit if a catch-all. It probably would be good to add more logging around that area. |
Correct. This is an Exercism solution.
I don't dispute that.
GO111MODULE is not set.
https://play.golang.org/p/_p1Czb1q5ky
Yes, it persists. The output is now:
(The issue you mentioned was slightly hijacked by someone else who posted a different problem, which was then fixed and the issue closed!) |
I'm not sure how this code would be compiling, because you need to either be in your |
@stamblerre , the code could compile in |
Thanks @bcmills - I was able to repro the behavior. It does seem that @bitfield: I think the conclusion here is that you will either need to be in your |
Since this is expected behavior does it make sense to clarify the error message? This issue could be rephrased as “error message unclear when doing this unsupported thing” but it almost certainly will come up again if the error isn’t clarified. |
I added a bit of extra logging to log errors when we try to type-check a package (https://golang.org/cl/178277). However, we are really limited by the error quality of |
Thanks! |
The attached source code causes
gopls
to fail:Hover doc does not work, and nor does auto-imports:
Here is the code:
paasio.tar.gz
It builds correctly and passes tests on
go1.12.5 darwin/amd64
.The text was updated successfully, but these errors were encountered: