mirror of https://github.com/golang/go.git
Currently, when a user opens a workspace with no top-level module but multiple modules in subdirectories, gopls treats that as an invalid build configuration and reports an error message that may be difficult for the user to understand (a go list error message about creating a main module in the top-level directory). Instead, show a more useful error message about the gopls workspace layout in both the progress bar and as a diagnostic on every open file. This fix only works for GO111MODULE=on (for now) because it's a lot easier to interpret user intent, and the go command will return no packages. The next step will be to improve error messaging for GO111MODULE=auto and for users with nested modules. Updates golang/go#42109 Change-Id: I702ca6745f7e080ff6704ade7843972ab469ccf3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/272346 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| completion | ||
| genapijson | ||
| api_json.go | ||
| call_hierarchy.go | ||
| code_lens.go | ||
| command.go | ||
| comment.go | ||
| comment_test.go | ||
| diagnostics.go | ||
| extract.go | ||
| folding_range.go | ||
| format.go | ||
| format_test.go | ||
| gc_annotations.go | ||
| highlight.go | ||
| hover.go | ||
| identifier.go | ||
| identifier_test.go | ||
| implementation.go | ||
| options.go | ||
| options_test.go | ||
| references.go | ||
| rename.go | ||
| rename_check.go | ||
| signature_help.go | ||
| source_test.go | ||
| symbols.go | ||
| types_format.go | ||
| util.go | ||
| view.go | ||
| workspace_symbol.go | ||
| workspace_symbol_test.go | ||