You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
I'm using 1.12.5 which is the latest release according to this page. I just ran go get -u golang.org/x/tools/cmd/gopls so presumably gopls is up to date.
What operating system and processor architecture are you using (go env)?
Put in file main.go in an otherwise empty directory:
package main
import"fmt"funcmain() {
fmt.Println("Hello World")
}
Then run:
% gopls check main.go
What did you expect to see?
Some diagnostics, maybe. Not an error. (I don't actually use this command specifically; I narrowed down the error from an LSP failure in Emacs.)
What did you see instead?
2019/06/07 14:24:10 Error:unable to check package for file:///Users/raxod502/temp/go-test/main.go: no packages found for /Users/raxod502/temp/go-test/main.go
2019/06/07 14:24:10 Error:unable to check package for file:///Users/raxod502/temp/go-test/main.go: no packages found for /Users/raxod502/temp/go-test/main.go
2019/06/07 14:24:10 Error:failed to deliver diagnostic for file:///Users/raxod502/temp/go-test/no%20packages%20found%20for%20/Users/raxod502/temp/go-test/main.go: stat /Users/raxod502/temp/go-test/no packages found for /Users/raxod502/temp/go-test/main.go: no such file or directory
The text was updated successfully, but these errors were encountered:
In module mode you need a go.mod file for gopls to load the package properly. I think there are plans to improve the messaging to make this more clear.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm using 1.12.5 which is the latest release according to this page. I just ran
go get -u golang.org/x/tools/cmd/gopls
so presumablygopls
is up to date.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Put in file
main.go
in an otherwise empty directory:Then run:
What did you expect to see?
Some diagnostics, maybe. Not an error. (I don't actually use this command specifically; I narrowed down the error from an LSP failure in Emacs.)
What did you see instead?
The text was updated successfully, but these errors were encountered: