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: improve command-line UX when checking files outside of the current module #43417

Open
pjweinb opened this issue Dec 29, 2020 · 0 comments
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@pjweinb
Copy link

pjweinb commented Dec 29, 2020

$ go version
go version go1.15.6 darwin/amd64

To reproduce, in the tools repository:

$ cd gopls
$ gopls check ../internal/lsp/cmd/cmd.go
2020/12/29 08:28:38 Error:2020/12/29 08:28:38 warning: diagnose package: no package for golang.org/x/tools/internal/lsp/cmd
	snapshot=1
	package="golang.org/x/tools/internal/lsp/cmd"

but it never finishes. Contrast this with

$ cd gopls
gopls check main.go

which returns immediately.

@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 Dec 29, 2020
@gopherbot gopherbot added this to the Unreleased milestone Dec 29, 2020
@stamblerre stamblerre changed the title x/tools/gopls: gopls check command hangs on package errors x/tools/gopls: improve command-line UX when checking files outside of the module Dec 29, 2020
@stamblerre stamblerre changed the title x/tools/gopls: improve command-line UX when checking files outside of the module x/tools/gopls: improve command-line UX when checking files outside of the current module Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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