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
$ go version
go version go1.12.4 linux/amd64
$ gopls version
golang.org/x/tools/gopls v0.1.2
golang.org/x/tools/gopls@v0.1.3 h1:CB5ECiPysqZrwxcyRjN+exyZpY0gODTZvNiqQi3lpeo=
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
I wasn't able to reproduce this problem. I see errors but once I save the file after typing "package main" things work properly (note that things work properly even without saving if I first go mod init repro).
The AST for file:///tmp/repro/repro.go has an invalid position errors in lsp-broken.log reminded me of https://go-review.googlesource.com/c/tools/+/185839. Can you see if you can reproduce the issue with gopls on master?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
mkdir /tmp/repro
cd /tmp/repro
emacs repro.go
LSP :: no AST for file:///tmp/repro/repro.go
func a() {} func b() { a() }
and placing the cursor ona()
.To make gopls work, it is not sufficient ot re-open the file. I need to kill gopls and restart it.
I’m attaching logfiles of this working (seems to work sometimes, but not always) and not working:
lsp-broken.log
lsp-working.log
cc @stamblerre
The text was updated successfully, but these errors were encountered: