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: go list error prevented initial workspace load #37064

Closed
stamblerre opened this issue Feb 5, 2020 · 2 comments
Closed

x/tools/gopls: go list error prevented initial workspace load #37064

stamblerre opened this issue Feb 5, 2020 · 2 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@stamblerre
Copy link
Contributor

@katiehockman reported a separate issue, but in her logs I noticed the following, specifically these go list errors (which would come to gopls by way of go/packages):

internal error: go list gives conflicting information for package crypto/internal/subtle
internal error: go list gives conflicting information for package crypto/internal/randutil

@jayconrod or @bcmills: What does this go list error mean?

Log snippet:

2020/02/05 14:33:43 initial workspace load failed: internal error: go list gives conflicting information for package crypto/internal/subtle
[Info  - 2:33:43 PM] 2020/02/05 14:33:43 go/packages.Load
	snapshot = 0
	query = [./... builtin]
	packages = 0
[Error - 2:33:43 PM] 2020/02/05 14:33:43 initial workspace load failed: internal error: go list gives conflicting information for package crypto/internal/subtle
[Info  - 2:33:43 PM] 2020/02/05 14:33:43 go/packages.Load
	snapshot = 1
	query = [file=/<redacted>/go/src/crypto/ecdsa/ecdsa.go]
	packages = 0
2020/02/05 14:33:43 DocumentSymbols failed: getting file for DocumentSymbols: internal error: go list gives conflicting information for package crypto/internal/randutil
	URI = file:///<redacted>/go/src/crypto/ecdsa/ecdsa.go
[Info  - 2:33:43 PM] 2020/02/05 14:33:43 go/packages.Load
	snapshot = 1
	query = [file=/<redacted>/go/src/crypto/ecdsa/ecdsa.go]
	packages = 0
@gopherbot gopherbot added this to the Unreleased milestone Feb 5, 2020
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Feb 5, 2020
@jayconrod
Copy link
Contributor

cc @matloob

This sounds like #36188, which was worked around in golang.org/x/tools/go/packages. What version of gopls was this, and what version of go/packages was it built against?

@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.4.0 Feb 5, 2020
@stamblerre stamblerre added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 26, 2020
@stamblerre stamblerre modified the milestones: gopls/v0.4.0, gopls/v0.5.0 Apr 2, 2020
@stamblerre
Copy link
Contributor Author

Yeah, it looks like #36188 didn't make it into gopls/v0.3.0, which was released around the time this issue was filed. Closing this as a result. Thanks, Jay!

@stamblerre stamblerre modified the milestones: gopls/v0.5.0, gopls/v0.4.1 May 13, 2020
@golang golang locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants