cmd/go: confusing error message for invalid package path #36558
Labels
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I made a mistake in
gopls
(corrected in CL 214717), which resulted in us passing multiple package paths as one argument togo list
. The resulting error message did not make this easy to debug, as it wasn't clear that that was the issue.-: module golang.org/x/tools@latest found (v0.0.0-20200114052453-d31a08c2edf2), but does not contain package golang.org/x/tools/internal/lsp/noparse_format golang.org/x/tools/internal/lsp/folding
It should be pretty obvious that a package path with a space is invalid, but it's not obvious what's going wrong from the error message.
The text was updated successfully, but these errors were encountered: