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: automated issue report (crash) - "SetRequire called with conflicting versions" #50425

Closed
emrahdulan opened this issue Jan 4, 2022 · 1 comment
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@emrahdulan
Copy link

gopls version: v0.7.4
gopls flags:
update flags: proxy
extension version: 0.30.0
go version: 1.17.1
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Tue, 04 Jan 2022 09:07:13 GMT
restart history:
Tue, 04 Jan 2022 08:43:32 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: SetRequire called with conflicting versions for path github.com/spf13/viper (v1.2.1 and v1.9.0)

goroutine 5855 [running]:
golang.org/x/mod/modfile.(*File).SetRequire(0xc007d71700, {0xc0058e9700, 0x1c, 0x30c})
	  rule.go:927  0x4da
golang.org/x/tools/internal/lsp/cache.switchDirectness(0xc0035fc780, 0xc0033edf80, 0xe924d8)
	  mod_tidy.go:442  0x2f3
golang.org/x/tools/internal/lsp/cache.directnessDiagnostic(0xc0033edf80, 0xc0035fc780, 0xc0072f2870)
	  mod_tidy.go:369  0x19c
golang.org/x/tools/internal/lsp/cache.modTidyDiagnostics({0xf83660, 0xc001ad4ba0}, {0xfacd60, 0xc0018f3000}, 0xc002d15c40, 0xc007d71300, {0xc0045b8280, 0x3, 0xd38317})
	  mod_tidy.go:213  0x4fc
golang.org/x/tools/internal/lsp/cache.(*snapshot).ModTidy.func1({0xf835b8, 0xc004a435c0}, {0xf6c960, 0xc0018f3000})
	  mod_tidy.go:135  0x825
golang.org/x/tools/internal/memoize.(*Handle).run.func1()
	  memoize.go:327  0xa9
created by golang.org/x/tools/internal/memoize.(*Handle).run
	  memoize.go:320  0x1b0
[Error - 10:07:04 AM] 

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@hyangah hyangah changed the title Jan 4, 2022
@hyangah hyangah changed the title Jan 4, 2022
@hyangah hyangah transferred this issue from golang/vscode-go Jan 4, 2022
@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 Jan 4, 2022
@gopherbot gopherbot added this to the Unreleased milestone Jan 4, 2022
@findleyr findleyr modified the milestones: Unreleased, gopls/v0.7.5 Jan 4, 2022
@gopherbot
Copy link

Change https://golang.org/cl/376394 mentions this issue: internal/lsp/cache: avoid panic in mod diags with redundant requires

@golang golang locked and limited conversation to collaborators Jan 13, 2023
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. 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