-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Closed
Copy link
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
Just got this panic a couple times at master, while using experimentalWorkspaceModule and working on x/tools. Haven't looked into it yet.
panic: unsupported use of -modfile, expected 1 module, got 2
goroutine 582872 [running]:
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc029a0d8c0, 0x1048660, 0xc013ed23f0, 0xc00d5d68c0, 0x3, 0x4, 0x0, 0x0)
/usr/local/google/home/rfindley/src/tools/internal/lsp/cache/load.go:117 +0x2d0d
golang.org/x/tools/internal/lsp/cache.(*snapshot).initialize.func2()
/usr/local/google/home/rfindley/src/tools/internal/lsp/cache/view.go:770 +0x470
sync.(*Once).doSlow(0xc01b647260, 0xc0239256f8)
/usr/lib/google-golang/src/sync/once.go:66 +0xec
sync.(*Once).Do(...)
/usr/lib/google-golang/src/sync/once.go:57
golang.org/x/tools/internal/lsp/cache.(*snapshot).initialize(0xc029a0d8c0, 0x10485a0, 0xc00c5010c0, 0xc00ef64e01)
/usr/local/google/home/rfindley/src/tools/internal/lsp/cache/view.go:729 +0x1d5
golang.org/x/tools/internal/lsp/cache.(*Session).createView.func3(0xc029a0d8c0, 0x10485a0, 0xc00c5010c0, 0xc00ef65190)
/usr/local/google/home/rfindley/src/tools/internal/lsp/cache/session.go:237 +0x45
created by golang.org/x/tools/internal/lsp/cache.(*Session).createView
/usr/local/google/home/rfindley/src/tools/internal/lsp/cache/session.go:236 +0x9d0
exit status 2
CC @stamblerre @heschik
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.