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: invalid errors when using "pkgm" VS Code snippet #39296

Closed
kzhui125 opened this issue May 28, 2020 · 23 comments
Closed

x/tools/gopls: invalid errors when using "pkgm" VS Code snippet #39296

kzhui125 opened this issue May 28, 2020 · 23 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@kzhui125
Copy link

My go code is correct, go run main.go is successful, but VSCode with gopls often shows error.

This is very annoying. the user experience is very bad .

Capture 20200528.mp4.zip

1

gopls logs
[Info  - 2:18:59 PM] 2020/05/28 14:18:59 Build info
----------
golang.org/x/tools/gopls 0.4.1
    golang.org/x/tools/[email protected] h1:0e3BPxGV4B3cd0zdMuccwW72SgmHp92lAjOyxX/ScAw=
    github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
    golang.org/x/[email protected] h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=
    golang.org/x/[email protected] h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
    golang.org/x/[email protected] h1:e7nYe9s94RHunFJ7b+mmPxiQMOKMVSqYASToWb1EcHs=
    golang.org/x/[email protected] h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
    honnef.co/go/[email protected] h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/[email protected] h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info

go version go1.14 darwin/amd64

[Info - 2:19:08 PM] 2020/05/28 14:19:08 go env for /Users/zm/Documents/repos/zrepos/gotest
(valid build configuration = true)
(build flags: [-modfile=/var/folders/_6/z1bzbqfn1h9byyv41hn2qgvc0000gn/T/go.gotest.008264988.mod])
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/zm/go/bin"
GOCACHE="/Users/zm/Library/Caches/go-build"
GOENV="/Users/zm/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/zm/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/zm/Documents/repos/zrepos/gotest/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_6/z1bzbqfn1h9byyv41hn2qgvc0000gn/T/go-build717930593=/tmp/go-build -gno-record-gcc-switches -fno-common"

[Info - 2:19:08 PM] 2020/05/28 14:19:08 go/packages.Load
snapshot=0
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[./... builtin]
packages=4

[Info - 2:24:05 PM] 2020/05/28 14:24:05 background imports cache refresh starting

[Info - 2:24:05 PM] 2020/05/28 14:24:05 background refresh finished after 320.030297ms

[Info - 2:52:08 PM] 2020/05/28 14:52:08 background imports cache refresh starting

[Info - 2:52:08 PM] 2020/05/28 14:52:08 background refresh finished after 102.373096ms

[Error - 2:54:06 PM] 2020/05/28 14:54:06 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 2:54:16 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:8:2: unexpected semicolon or newline before {
Code: 0
[Error - 2:54:25 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:8:2: unexpected semicolon or newline before {
Code: 0
[Info - 2:54:33 PM] 2020/05/28 14:54:33 background imports cache refresh starting

[Info - 2:54:33 PM] 2020/05/28 14:54:33 background refresh finished after 98.568147ms

[Error - 2:54:40 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:10:46: expected ';', found 'ILLEGAL' (and 6 more errors)
Code: 0
[Error - 2:54:40 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:10:46: expected ';', found 'ILLEGAL' (and 6 more errors)
Code: 0
[Error - 2:54:41 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:11:4: expected statement, found 'ILLEGAL' (and 6 more errors)
Code: 0
[Error - 2:54:42 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:11:4: expected statement, found 'ILLEGAL' (and 6 more errors)
Code: 0
[Error - 2:54:44 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:11:4: expected statement, found 'ILLEGAL' (and 6 more errors)
Code: 0
[Info - 2:55:04 PM] 2020/05/28 14:55:04 background imports cache refresh starting

[Info - 2:55:04 PM] 2020/05/28 14:55:04 background refresh finished after 35.087993ms

[Error - 2:55:06 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:1: expected declaration, found P (and 1 more errors)
Code: 0
[Error - 2:55:06 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:1: expected declaration, found P (and 1 more errors)
Code: 0
[Error - 2:55:08 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:1: expected declaration, found P (and 1 more errors)
Code: 0
[Error - 2:55:13 PM] 2020/05/28 14:55:13 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 2:55:28 PM] 2020/05/28 14:55:28 no signature help: cannot find an enclosing function
position={13 13}

[Error - 2:55:29 PM] 2020/05/28 14:55:29 no signature help: cannot find an enclosing function
position={13 15}

[Info - 2:55:40 PM] 2020/05/28 14:55:40 background imports cache refresh starting

[Info - 2:55:40 PM] 2020/05/28 14:55:40 background refresh finished after 37.675117ms

[Error - 2:55:46 PM] 2020/05/28 14:55:46 no signature help: cannot find an enclosing function
position={17 11}

[Error - 2:55:46 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:18:2: expected 1 expression
Code: 0
[Error - 2:55:49 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:18:29: missing ',' in argument list
Code: 0
[Error - 2:55:51 PM] 2020/05/28 14:55:51 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 2:55:56 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:20:1: expected operand, found '}' (and 7 more errors)
Code: 0
[Error - 2:55:58 PM] 2020/05/28 14:55:58 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 2:55:58 PM] 2020/05/28 14:55:58 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 2:55:59 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:19:9: expected ';', found '!'
Code: 0
[Error - 2:56:05 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:21:2: expected selector or type assertion, found '}' (and 2 more errors)
Code: 0
[Error - 2:56:10 PM] 2020/05/28 14:56:10 no signature help: cannot find an enclosing function
position={19 30}

[Error - 2:56:10 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:20:20: missing ',' in argument list (and 4 more errors)
Code: 0
[Info - 2:56:13 PM] 2020/05/28 14:56:13 background imports cache refresh starting

[Info - 2:56:13 PM] 2020/05/28 14:56:13 background refresh finished after 31.832839ms

[Error - 2:56:17 PM] 2020/05/28 14:56:17 no signature help: cannot find an enclosing function
position={21 29}

[Error - 2:56:18 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:22:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Error - 2:56:35 PM] 2020/05/28 14:56:35 no signature help: cannot find an enclosing function
position={20 8}

[Info - 2:56:44 PM] 2020/05/28 14:56:44 background imports cache refresh starting

[Info - 2:56:44 PM] 2020/05/28 14:56:44 background refresh finished after 46.083733ms

[Info - 2:57:27 PM] 2020/05/28 14:57:27 background imports cache refresh starting

[Info - 2:57:27 PM] 2020/05/28 14:57:27 background refresh finished after 43.602381ms

[Error - 2:57:48 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:15:2: expected selector or type assertion, found 'return' (and 1 more errors)
Code: 0
[Error - 2:57:50 PM] 2020/05/28 14:57:50 no signature help: cannot find an enclosing function
position={13 29}

[Error - 2:57:50 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Error - 2:57:51 PM] 2020/05/28 14:57:51 unable to compute error positions: invalid position for type error -: missing return
package="gtest/cmd/test2"

[Error - 2:57:51 PM] 2020/05/28 14:57:51 unable to compute error positions: invalid position for type error -: missing return
package="gtest/cmd/test2"

[Error - 2:57:51 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:18: expected operand, found ')' (and 15 more errors)
Code: 0
[Error - 2:57:53 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 2:58:12 PM] 2020/05/28 14:58:12 background imports cache refresh starting

[Info - 2:58:12 PM] 2020/05/28 14:58:12 background refresh finished after 42.756382ms

[Error - 3:13:46 PM] 2020/05/28 15:13:46 no signature help: cannot find an enclosing function
position={15 29}

[Error - 3:13:46 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:16:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Info - 3:13:54 PM] 2020/05/28 15:13:54 background imports cache refresh starting

[Info - 3:13:54 PM] 2020/05/28 15:13:54 background refresh finished after 52.516422ms

[Info - 3:14:24 PM] 2020/05/28 15:14:24 background imports cache refresh starting

[Info - 3:14:24 PM] 2020/05/28 15:14:24 background refresh finished after 23.198064ms

[Error - 3:14:32 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 3:14:32 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 3:14:32 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 3:14:35 PM] 2020/05/28 15:14:35 no completions found: this is a definition of func t(input string) (s string, err error)
position={6 6}

[Info - 3:15:02 PM] 2020/05/28 15:15:02 background imports cache refresh starting

[Info - 3:15:02 PM] 2020/05/28 15:15:02 background refresh finished after 48.730894ms

[Error - 3:15:02 PM] 2020/05/28 15:15:02 no signature help: cannot find an enclosing function
position={11 31}

[Error - 3:15:03 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:12:21: missing ',' in argument list (and 8 more errors)
Code: 0
[Error - 3:15:08 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:12:18: missing ',' in argument list
Code: 0
[Error - 3:15:29 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 3:15:35 PM] 2020/05/28 15:15:35 background imports cache refresh starting

[Info - 3:15:35 PM] 2020/05/28 15:15:35 background refresh finished after 27.622843ms

[Error - 3:15:49 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:24:13: missing ',' in argument list
Code: 0
[Info - 3:16:06 PM] 2020/05/28 15:16:06 background imports cache refresh starting

[Info - 3:16:06 PM] 2020/05/28 15:16:06 background refresh finished after 38.618936ms

[Info - 3:16:36 PM] 2020/05/28 15:16:36 background imports cache refresh starting

[Info - 3:16:36 PM] 2020/05/28 15:16:36 background refresh finished after 31.893355ms

[Info - 3:18:17 PM] 2020/05/28 15:18:17 background imports cache refresh starting

[Info - 3:18:17 PM] 2020/05/28 15:18:17 background refresh finished after 35.139309ms

[Info - 3:34:34 PM] 2020/05/28 15:34:34 background imports cache refresh starting

[Info - 3:34:34 PM] 2020/05/28 15:34:34 background refresh finished after 49.507833ms

[Info - 3:35:05 PM] 2020/05/28 15:35:05 background imports cache refresh starting

[Info - 3:35:05 PM] 2020/05/28 15:35:05 background refresh finished after 26.800914ms

[Info - 3:36:59 PM] 2020/05/28 15:36:59 background imports cache refresh starting

[Info - 3:36:59 PM] 2020/05/28 15:36:59 background refresh finished after 36.460778ms

[Info - 3:48:30 PM] 2020/05/28 15:48:30 background imports cache refresh starting

[Info - 3:48:30 PM] 2020/05/28 15:48:30 background refresh finished after 39.382971ms

[Error - 3:49:45 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 3:49:46 PM] 2020/05/28 15:49:46 go/packages.Load
snapshot=473
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Info - 3:49:46 PM] 2020/05/28 15:49:46 go/packages.Load
snapshot=473
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 3:49:46 PM] 2020/05/28 15:49:46 go/packages.Load
snapshot=473
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]
packages=1

[Info - 3:49:46 PM] 2020/05/28 15:49:46 go/packages.Load
snapshot=473
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Error - 3:49:59 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 3:50:08 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 3:50:14 PM] 2020/05/28 15:50:14 background imports cache refresh starting

[Info - 3:50:14 PM] 2020/05/28 15:50:14 background refresh finished after 28.940846ms

[Info - 3:52:33 PM] 2020/05/28 15:52:33 background imports cache refresh starting

[Info - 3:52:33 PM] 2020/05/28 15:52:33 background refresh finished after 26.341256ms

[Info - 3:53:10 PM] 2020/05/28 15:53:10 background imports cache refresh starting

[Info - 3:53:10 PM] 2020/05/28 15:53:10 background refresh finished after 23.264217ms

[Info - 3:53:55 PM] 2020/05/28 15:53:55 go/packages.Load
snapshot=483
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Info - 3:53:55 PM] 2020/05/28 15:53:55 go/packages.Load
snapshot=483
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
snapshot=483
package="gtest/cmd/test2"

[Info - 3:53:55 PM] 2020/05/28 15:53:55 go/packages.Load
snapshot=483
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]
packages=1

[Info - 3:53:55 PM] 2020/05/28 15:53:55 go/packages.Load
snapshot=483
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Error - 3:53:55 PM] 2020/05/28 15:53:55 no completions found: getting file for Completion: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
position={0 1}

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))], list errors: []
snapshot=485
package="gtest/cmd/test2"

[Error - 3:53:55 PM] Request textDocument/foldingRange failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))
Code: 0
[Error - 3:53:55 PM] Request textDocument/codeLens failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))
Code: 0
[Error - 3:53:55 PM] Request textDocument/codeAction failed.
Message: computing fix edits: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))
Code: 0
[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))], list errors: []
snapshot=486
package="gtest/cmd/test2"

[Error - 3:53:55 PM] 2020/05/28 15:53:55 DocumentSymbols failed: getting file for DocumentSymbols: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found oka (and 2 more errors))], list errors: []
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found ok (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found ok (and 2 more errors))], list errors: []
snapshot=487
package="gtest/cmd/test2"

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
snapshot=488
package="gtest/cmd/test2"

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
snapshot=489
package="gtest/cmd/test2"

[Error - 3:53:55 PM] 2020/05/28 15:53:55 failed to compute document links: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Error - 3:53:55 PM] Request textDocument/foldingRange failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))
Code: 0
[Error - 3:53:55 PM] Request textDocument/codeLens failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))
Code: 0
[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:55 PM] 2020/05/28 15:53:55 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
snapshot=490
package="gtest/cmd/test2"

[Error - 3:53:55 PM] 2020/05/28 15:53:55 DocumentSymbols failed: getting file for DocumentSymbols: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found o (and 2 more errors))], list errors: []
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Error - 3:53:56 PM] 2020/05/28 15:53:56 no completions found: getting file for Completion: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found po (and 2 more errors))], list errors: []
position={0 1}

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found po (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found po (and 2 more errors))], list errors: []
snapshot=491
package="gtest/cmd/test2"

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))], list errors: []
snapshot=492
package="gtest/cmd/test2"

[Error - 3:53:56 PM] Request textDocument/foldingRange failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))
Code: 0
[Error - 3:53:56 PM] Request textDocument/codeLens failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))
Code: 0
[Error - 3:53:56 PM] Request textDocument/codeAction failed.
Message: computing fix edits: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))
Code: 0
[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))], list errors: []
snapshot=493
package="gtest/cmd/test2"

[Error - 3:53:56 PM] 2020/05/28 15:53:56 DocumentSymbols failed: getting file for DocumentSymbols: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pko (and 2 more errors))], list errors: []
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:56 PM] 2020/05/28 15:53:56 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))], list errors: []
snapshot=494
package="gtest/cmd/test2"

[Error - 3:53:56 PM] Request textDocument/foldingRange failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))
Code: 0
[Error - 3:53:57 PM] Request textDocument/codeLens failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))
Code: 0
[Error - 3:53:57 PM] Request textDocument/codeAction failed.
Message: computing fix edits: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))
Code: 0
[Error - 3:53:57 PM] 2020/05/28 15:53:57 warning: diagnose go.mod: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))], list errors: []
directory=/Users/zm/Documents/repos/zrepos/gotest

[Error - 3:53:57 PM] 2020/05/28 15:53:57 warning: diagnose package: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))], list errors: []
snapshot=495
package="gtest/cmd/test2"

[Error - 3:53:57 PM] 2020/05/28 15:53:57 DocumentSymbols failed: getting file for DocumentSymbols: no parsed files for package gtest/cmd/test2, expected: [/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go], errors: [successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:1:1: expected 'package', found pkgo (and 2 more errors))], list errors: []
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Info - 3:53:57 PM] 2020/05/28 15:53:57 go/packages.Load
snapshot=496
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 3:53:57 PM] 2020/05/28 15:53:57 go/packages.Load
snapshot=496
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Info - 3:53:57 PM] 2020/05/28 15:53:57 go/packages.Load
snapshot=496
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]
packages=1

[Info - 3:53:57 PM] 2020/05/28 15:53:57 go/packages.Load
snapshot=496
package_path="command-line-arguments"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Error - 3:54:00 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:2: expected ';', found o
Code: 0
[Info - 3:54:00 PM] 2020/05/28 15:54:00 go/packages.Load
snapshot=506
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Info - 3:54:00 PM] 2020/05/28 15:54:00 go/packages.Load
snapshot=506
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]
packages=1

[Error - 3:54:00 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:17: expected operand, found ']' (and 6 more errors)
Code: 0
[Info - 3:54:00 PM] 2020/05/28 15:54:00 go/packages.Load
snapshot=506
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 3:54:00 PM] 2020/05/28 15:54:00 go/packages.Load
snapshot=506
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Error - 3:54:00 PM] 2020/05/28 15:54:00 DocumentSymbols failed: invalid pos
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go

[Error - 3:54:01 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:17: expected operand, found ']' (and 6 more errors)
Code: 0
[Error - 3:54:02 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:7:2: expected ';', found o
Code: 0
[Error - 3:54:04 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:7:2: expected ';', found o
Code: 0
[Error - 3:54:05 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:7:2: expected ';', found o
Code: 0
[Error - 3:54:05 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:7:2: expected ';', found o
Code: 0
[Error - 3:54:05 PM] Request textDocument/formatting failed.
Message: 7:2: expected ';', found o
Code: 0
[Error - 3:54:06 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:7:2: expected ';', found o
Code: 0
[Info - 3:54:17 PM] 2020/05/28 15:54:17 background imports cache refresh starting

[Info - 3:54:17 PM] 2020/05/28 15:54:17 background refresh finished after 20.450152ms

[Error - 3:55:13 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 3:55:14 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Info - 3:55:42 PM] 2020/05/28 15:55:42 background imports cache refresh starting

[Info - 3:55:42 PM] 2020/05/28 15:55:42 background refresh finished after 44.230475ms

[Info - 3:56:25 PM] 2020/05/28 15:56:25 background imports cache refresh starting

[Info - 3:56:25 PM] 2020/05/28 15:56:25 background refresh finished after 26.565365ms

[Error - 3:56:31 PM] 2020/05/28 15:56:31 no signature help: cannot find an enclosing function
position={13 29}

[Error - 3:56:31 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Info - 3:56:56 PM] 2020/05/28 15:56:56 background imports cache refresh starting

[Info - 3:56:56 PM] 2020/05/28 15:56:56 background refresh finished after 28.659124ms

[Error - 3:58:10 PM] 2020/05/28 15:58:10 no signature help: cannot find an enclosing function
position={13 29}

[Error - 3:58:10 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Error - 3:58:12 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:18: expected ';', found _ (and 2 more errors)
Code: 0
[Info - 3:58:32 PM] 2020/05/28 15:58:32 background imports cache refresh starting

[Info - 3:58:32 PM] 2020/05/28 15:58:32 background refresh finished after 54.885322ms

[Error - 4:00:08 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:11 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:12 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:13 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:15 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:17 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:00:35 PM] 2020/05/28 16:00:35 no signature help: cannot find an enclosing function
position={13 29}

[Error - 4:00:35 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:14:19: missing ',' in argument list (and 2 more errors)
Code: 0
[Info - 4:00:37 PM] 2020/05/28 16:00:37 background imports cache refresh starting

[Info - 4:00:37 PM] 2020/05/28 16:00:37 background refresh finished after 28.045654ms

[Info - 4:01:07 PM] 2020/05/28 16:01:07 background imports cache refresh starting

[Info - 4:01:07 PM] 2020/05/28 16:01:07 background refresh finished after 24.013773ms

[Error - 4:16:55 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:16:56 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 4:16:56 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:16:56 PM] Request textDocument/formatting failed.
Message: 5:40: expected ';', found 'for'
Code: 0
[Error - 4:16:57 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 4:16:57 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:16:57 PM] Request textDocument/formatting failed.
Message: 5:40: expected ';', found 'for'
Code: 0
[Error - 4:16:57 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:16:57 PM] Request textDocument/formatting failed.
Message: 5:40: expected ';', found 'for'
Code: 0
[Error - 4:16:58 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 4:16:58 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:16:58 PM] Request textDocument/formatting failed.
Message: 5:40: expected ';', found 'for'
Code: 0
[Error - 4:16:58 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 4:17:23 PM] 2020/05/28 16:17:23 background imports cache refresh starting

[Info - 4:17:23 PM] 2020/05/28 16:17:23 background refresh finished after 63.722891ms

[Error - 4:18:04 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 4:18:21 PM] 2020/05/28 16:18:21 background imports cache refresh starting

[Info - 4:18:21 PM] 2020/05/28 16:18:21 background refresh finished after 45.137529ms

[Error - 4:26:26 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Error - 4:26:29 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:5:40: expected ';', found 'for' (and 1 more errors)
Code: 0
[Info - 4:26:55 PM] 2020/05/28 16:26:55 background imports cache refresh starting

[Info - 4:26:55 PM] 2020/05/28 16:26:55 background refresh finished after 54.374716ms

[Info - 4:33:42 PM] 2020/05/28 16:33:42 background imports cache refresh starting

[Info - 4:33:42 PM] 2020/05/28 16:33:42 background refresh finished after 43.876171ms

[Error - 4:47:20 PM] 2020/05/28 16:47:20 no completions found: this is a definition of var e invalid type
position={5 6}

[Error - 4:47:20 PM] 2020/05/28 16:47:20 no completions found: this is a definition of var err invalid type
position={5 8}

[Error - 4:47:20 PM] Request textDocument/codeAction failed.
Message: computing fix edits: /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go:6:6: missing variable type or initialization
Code: 0
[Error - 4:47:22 PM] 2020/05/28 16:47:22 no signature help: cannot find an enclosing function
position={5 14}

[Error - 4:47:26 PM] 2020/05/28 16:47:26 no signature help: cannot find an enclosing function
position={6 29}

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]
packages=1

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
package_path="builtin"
files=[/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]

[Error - 4:47:29 PM] 2020/05/28 16:47:29 failed to compute document links: no PackageHandles
URI=file:///usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]
packages=1

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
package_path="builtin"
files=[/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]

[Error - 4:47:29 PM] 2020/05/28 16:47:29 DocumentSymbols failed: getting file for DocumentSymbols: no PackageHandles
URI=file:///usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]
packages=1

[Error - 4:47:29 PM] Request textDocument/definition failed.
Message: getting file for Identifier: no PackageHandles
Code: 0
[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
package_path="builtin"
files=[/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]
packages=1

[Info - 4:47:29 PM] 2020/05/28 16:47:29 go/packages.Load
snapshot=752
package_path="builtin"
files=[/usr/local/Cellar/go/1.14/libexec/src/builtin/builtin.go]

[Error - 4:47:36 PM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Info - 4:47:47 PM] 2020/05/28 16:47:47 background imports cache refresh starting

[Info - 4:47:47 PM] 2020/05/28 16:47:47 background refresh finished after 37.908906ms

[Info - 5:06:38 PM] 2020/05/28 17:06:38 go/packages.Load
snapshot=757
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 5:06:38 PM] 2020/05/28 17:06:38 go/packages.Load
snapshot=757
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go]

[Info - 5:06:38 PM] 2020/05/28 17:06:38 go/packages.Load
snapshot=757
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]
packages=0

[Error - 5:06:38 PM] 2020/05/28 17:06:38 failed to compute document links: no PackageHandles
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go

[Info - 5:06:39 PM] 2020/05/28 17:06:39 go/packages.Load
snapshot=757
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]
packages=0

[Info - 5:06:39 PM] 2020/05/28 17:06:39 go/packages.Load
snapshot=757
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]
packages=0

[Error - 5:06:39 PM] 2020/05/28 17:06:39 DocumentSymbols failed: getting file for DocumentSymbols: no PackageHandles
URI=file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go

[Error - 5:06:39 PM] Request textDocument/codeLens failed.
Message: successfully parsed but no token.File for file:///Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go (/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go:1:1: expected ';', found 'EOF' (and 2 more errors))
Code: 0
[Info - 5:06:39 PM] 2020/05/28 17:06:39 go/packages.Load
snapshot=758
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]

[Info - 5:06:39 PM] 2020/05/28 17:06:39 go/packages.Load
snapshot=758
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Error - 5:06:39 PM] 2020/05/28 17:06:39 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=760
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=760
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=760
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]
packages=1

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=760
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]

[Error - 5:06:43 PM] 2020/05/28 17:06:43 no completions found: this is a definition
position={0 9}

[Error - 5:06:43 PM] 2020/05/28 17:06:43 warning: diagnose go.mod: no parsed file for file:///Users/zm/Documents/repos/zrepos/gotest/go.mod
directory=/Users/zm/Documents/repos/zrepos/gotest

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=763
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[gtest/cmd/test2]
packages=1

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=763
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=763
package_path="gtest/cmd/test2"
files=[/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/main.go /Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]

[Error - 5:06:43 PM] 2020/05/28 17:06:43 no completions found: this is a definition
position={0 12}

[Info - 5:06:43 PM] 2020/05/28 17:06:43 go/packages.Load
snapshot=763
directory=/Users/zm/Documents/repos/zrepos/gotest
query=[file=/Users/zm/Documents/repos/zrepos/gotest/cmd/test2/test.go]
packages=1

[Info - 5:07:12 PM] 2020/05/28 17:07:12 background imports cache refresh starting

[Info - 5:07:12 PM] 2020/05/28 17:07:12 background refresh finished after 54.101105ms

[Error - 5:08:09 PM] Request textDocument/definition failed.
Message: no imported package for fmt
Code: 0
[Info - 5:08:14 PM] 2020/05/28 17:08:14 background imports cache refresh starting

[Info - 5:08:14 PM] 2020/05/28 17:08:14 background refresh finished after 44.887711ms

[Info - 5:09:41 PM] 2020/05/28 17:09:41 background imports cache refresh starting

[Info - 5:09:41 PM] 2020/05/28 17:09:41 background refresh finished after 47.438933ms

[Info - 5:10:15 PM] 2020/05/28 17:10:15 background imports cache refresh starting

[Info - 5:10:15 PM] 2020/05/28 17:10:15 background refresh finished after 38.064994ms

[Info - 5:11:22 PM] 2020/05/28 17:11:22 background imports cache refresh starting

[Info - 5:11:22 PM] 2020/05/28 17:11:22 background refresh finished after 52.020333ms

[Info - 5:12:11 PM] 2020/05/28 17:12:11 background imports cache refresh starting

[Info - 5:12:11 PM] 2020/05/28 17:12:11 background refresh finished after 60.147483ms

[Info - 5:13:25 PM] 2020/05/28 17:13:25 background imports cache refresh starting

[Info - 5:13:25 PM] 2020/05/28 17:13:25 background refresh finished after 34.811703ms

@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 May 28, 2020
@gopherbot
Copy link
Contributor

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

@gopherbot gopherbot added this to the Unreleased milestone May 28, 2020
@stamblerre
Copy link
Contributor

Do you mind sharing the output of gopls -rpc.trace -v check path/to/file.go? It's a little difficult to understand what's happening in this log.

@stamblerre stamblerre added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label May 28, 2020
@kzhui125
Copy link
Author

@stamblerre after reloading VSCode, the error disappears.

But this is very annoying, when I meet issue like this, I have to reload VSCode. Or reopen go file. to make the error disappear. (in this case, reopen file doesn't work, I have to reload VSCode)

@stamblerre
Copy link
Contributor

I'm sorry, I understand this is frustrating behavior. Can you add this to your settings?

"go.languageServerFlags": [
	"-rpc.trace",
]

This will enable verbose logging. If you're able to get a repro case and produce a shorter log, that would be really helpful in investigating the issue.

@kzhui125
Copy link
Author

@stamblerre
Thanks, I will have a try.

here I get another error: "expected declaration, found o", but the go file is correct.

12

gopls log:

gopls.log

@kzhui125
Copy link
Author

Here is a example that vscode or gopls stop working:

1

my go file has error, but VSCode doesn't report it, even I reopen the go file.

I have to reload VSCode

gopls.log

@kzhui125
Copy link
Author

the "expected declaration, found 'package'" error is very often, meet it again:

3

gopls.log

@stamblerre
Copy link
Contributor

Thank you for these reports. I was able to reproduce the issue in your first case, so I'll start with that. Seems like it's somehow tied to the pkgm snippet that you seem to have used, because when I create a file by manually typing I have no issues, but with the snippet I see the error.

@kzhui125
Copy link
Author

kzhui125 commented Jun 1, 2020

@stamblerre the error also appears with cmd+a, cmd+x, cmd+v

1

my vscode settings related:

{
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 300,
    "[golang]": {
        "editor.tabSize": 4,
        "editor.detectIndentation": false,
        "editor.insertSpaces": false,
    },
    "go.delveConfig": {
        "dlvLoadConfig": {
            "followPointers": true,
            "maxVariableRecurse": 1,
            "maxStringLen": 100000,
            "maxArrayValues": 1000,
            "maxStructFields": -1
        },
        "apiVersion": 2,
        "showGlobalVariables": true
    },
    "go.formatTool": "goimports",
    "go.useLanguageServer": true,
    "go.testFlags": [
        "-v"
    ],
    "go.languageServerFlags": [
        "-rpc.trace",
    ],
    "[go]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
        },
    },
    "[go.mod]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
        },
    },
    "gopls": {
        "usePlaceholders": true,
        "completeUnimported": true
    },
}

@stamblerre
Copy link
Contributor

Thanks - that's already filed as #38424.

@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.5.0 Jun 2, 2020
@kzhui125
Copy link
Author

kzhui125 commented Jun 5, 2020

@stamblerre change package name cause the "(no package for import fmt)compiler
" error

1

gopls.log

@kzhui125
Copy link
Author

kzhui125 commented Jun 8, 2020

the gopls stop working again, no error is shown for my file, I have to reload VSCode:

1

gopls.log

It's very unstable.

@kzhui125
Copy link
Author

2020-06-17

gopls.log

@kzhui125
Copy link
Author

just now I meet two new errors:

  1. cannot use entries (variable of type []os.FileInfo) as []os.FileInfo value in return statement

  2. undeclared name: png

2

in the meantime I am upgrading go using brew, but when the upgrade completes, the error is still there, I have to reload VSCode now

gopls.log

@stamblerre stamblerre changed the title x/tools/gopls: could not import fmt (no package for import fmt)compiler x/tools/gopls: cases of errors, necessitating restart Jun 19, 2020
@stamblerre
Copy link
Contributor

@kzhui125: I appreciate you posting these comments and logs here, but it's difficult to make progress on them without clear repro cases. We will try to make progress on investigating as time permits, but we currently do have other priorities, so we may not get to triaging all of these.

Regarding #39296 (comment), case (1) is #38403. In general, I would expect that you might need to restart the language server after updating go, as the packages in your workspace would've been loaded with a different go version.

@stamblerre stamblerre changed the title x/tools/gopls: cases of errors, necessitating restart x/tools/gopls: invalid errors when using "pkgm" VS Code snippet Jun 24, 2020
@stamblerre
Copy link
Contributor

I just confirmed that I can no longer reproduce the issues with the pkgm snippet with gopls at master. @kzhui125: Can you please try out the pre-release (GO111MODULE=on go get golang.org/x/tools/[email protected]) and let me know if you are still seeing similar issues?

@kzhui125
Copy link
Author

still have issue:

1

gopls.log

@stamblerre

@stamblerre
Copy link
Contributor

Thanks for the log. This seems like a slightly different issue. In this case, I can reproduce by:

  1. Creating a directory with some basic Go file (in this case, te/te.go).
  2. Create a test file in that directory (te/te_test.go) and using the pkgm snippet to pre-fill the file.
  3. Change the package name in the te_test.go file from main to te. You will then see this error.

I know that @pjweinb has worked on improving the behavior when a package name changes.

@stamblerre stamblerre removed the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jun 30, 2020
@kzhui125
Copy link
Author

kzhui125 commented Jul 1, 2020

1

gopls.log

@stamblerre

@stamblerre
Copy link
Contributor

@kzhui125: Please explain the steps you took to encounter the error, if you are sharing a log. It is difficult to reproduce the problem with only the log, since it is quite long.

@kzhui125
Copy link
Author

kzhui125 commented Jul 1, 2020

@stamblerre:

  1. command + a (select all)
  2. command + x (cut)
  3. command + v (paste)

@stamblerre
Copy link
Contributor

Thanks for clarifying. That issue is already tracked here: #38424.

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/241398 mentions this issue: internal/lsp/regtest: add a regtest for golang/go#39296

@stamblerre stamblerre modified the milestones: gopls/v0.5.0, gopls/v0.4.4 Jul 9, 2020
leitzler added a commit to govim/govim that referenced this issue Jul 16, 2020
* internal/lsp/lsprpc: improvements to daemon logging f2c07d7d
* internal/lsp/regtest: simpler way to invert options cf799cae
* internal/lsp: don't keep track of closed overlays 43ed9469
* internal/lsp: fix error in CL 242457 e66011cb
* internal/lsp: clean up the code lens code a8f9df4c
* internal/lsp: refactor generate code lens code c80dc571
* go/packages: add x test overlay test 130c9f19
* internal/lsp: add an importShortcut configuration ddb87c8c
* internal/lsp: handle nil pointer in PackageStats 4cea8971
* internal/lsp/source: handle nil pointer in newBuiltinSignature b42590c1
* internal/lsp: avoid panic caused by assuming file ends with newline 9048b464
* internal/lsp: always show signature as the top line in hover 6acd2ab8
* gopls, internal/lsp: support an extra formatting hook for gofumpt 62a0bb78
* internal/lsp: add changeMethods logic to rename check f8240f79
* internal/lsp/source: add Vendor to list of supported commands 01425d70
* internal/analysisinternal: do not initialize {Get,Set}TypeErrors f739c553
* internal/lsp: watch go.{mod,sum} files, as well as Go files fd294ab1
* internal/lsp/cmd: add a -vv flag for higher verbosity 7342f973
* internal/lsp, go/packages: reproduce and fix golang/go#39646 f1c4188a
* internal/lsp: add new go.mod requires to files with unused require 125cc70a
* internal/lsp: fix rename with Windows line endings 55a0fde5
* internal/lsp/regtest: standardize on 20s timeout e327e101
* internal/lsp/regtest: use a common directory for regtest sandboxes e404ca24
* internal/lsp/regtest: remove stray short timeout df98bc6d
* internal/lsp/regtest: add a regtest for golang/go#39296 3544e8c9
* internal/lsp/cache: handle missing mod file 31b9a748
* internal/lsp: check if analysis enabled in convenience fixes 7370b034
* internal/lsp/regtest: await IWL before running tests 134513de
* internal/lsp/source: disable fillstruct by default d5a74533
* internal/lsp/cache: fix race in RunProcessEnvFunc 065b96d3
* internal/lsp: extract highlighted selection to variable 9c9572d6
* internal/imports: require valid options, move LocalPrefix up 416e8f4f
* internal/lsp/analysis/fillstruct: support anonymous structs 9e0a013e
* cmd/goyacc: print newlines more consistently b22de682
* all: update dependencies in go.mod file 682c4542
* internal/lsp/source: handle nil pointer in comment completions 95bc2bdf
leitzler added a commit to govim/govim that referenced this issue Jul 17, 2020
* internal/lsp: add a configuration to enable/disable links in hover 6ddee643
* internal/lsp: log errors for compute fix edits instead of returning d518495e
* internal/lsp: refactor go.mod diagnostics to simplify the API 58eba7e7
* internal/lsp/lsprpc: improvements to daemon logging f2c07d7d
* internal/lsp/regtest: simpler way to invert options cf799cae
* internal/lsp: don't keep track of closed overlays 43ed9469
* internal/lsp: fix error in CL 242457 e66011cb
* internal/lsp: clean up the code lens code a8f9df4c
* internal/lsp: refactor generate code lens code c80dc571
* go/packages: add x test overlay test 130c9f19
* internal/lsp: add an importShortcut configuration ddb87c8c
* internal/lsp: handle nil pointer in PackageStats 4cea8971
* internal/lsp/source: handle nil pointer in newBuiltinSignature b42590c1
* internal/lsp: avoid panic caused by assuming file ends with newline 9048b464
* internal/lsp: always show signature as the top line in hover 6acd2ab8
* gopls, internal/lsp: support an extra formatting hook for gofumpt 62a0bb78
* internal/lsp: add changeMethods logic to rename check f8240f79
* internal/lsp/source: add Vendor to list of supported commands 01425d70
* internal/analysisinternal: do not initialize {Get,Set}TypeErrors f739c553
* internal/lsp: watch go.{mod,sum} files, as well as Go files fd294ab1
* internal/lsp/cmd: add a -vv flag for higher verbosity 7342f973
* internal/lsp, go/packages: reproduce and fix golang/go#39646 f1c4188a
* internal/lsp: add new go.mod requires to files with unused require 125cc70a
* internal/lsp: fix rename with Windows line endings 55a0fde5
* internal/lsp/regtest: standardize on 20s timeout e327e101
* internal/lsp/regtest: use a common directory for regtest sandboxes e404ca24
* internal/lsp/regtest: remove stray short timeout df98bc6d
* internal/lsp/regtest: add a regtest for golang/go#39296 3544e8c9
* internal/lsp/cache: handle missing mod file 31b9a748
* internal/lsp: check if analysis enabled in convenience fixes 7370b034
* internal/lsp/regtest: await IWL before running tests 134513de
* internal/lsp/source: disable fillstruct by default d5a74533
* internal/lsp/cache: fix race in RunProcessEnvFunc 065b96d3
* internal/lsp: extract highlighted selection to variable 9c9572d6
* internal/imports: require valid options, move LocalPrefix up 416e8f4f
* internal/lsp/analysis/fillstruct: support anonymous structs 9e0a013e
* cmd/goyacc: print newlines more consistently b22de682
* all: update dependencies in go.mod file 682c4542
* internal/lsp/source: handle nil pointer in comment completions 95bc2bdf
leitzler added a commit to govim/govim that referenced this issue Jul 17, 2020
* internal/lsp: add a configuration to enable/disable links in hover 6ddee643
* internal/lsp: log errors for compute fix edits instead of returning d518495e
* internal/lsp: refactor go.mod diagnostics to simplify the API 58eba7e7
* internal/lsp/lsprpc: improvements to daemon logging f2c07d7d
* internal/lsp/regtest: simpler way to invert options cf799cae
* internal/lsp: don't keep track of closed overlays 43ed9469
* internal/lsp: fix error in CL 242457 e66011cb
* internal/lsp: clean up the code lens code a8f9df4c
* internal/lsp: refactor generate code lens code c80dc571
* go/packages: add x test overlay test 130c9f19
* internal/lsp: add an importShortcut configuration ddb87c8c
* internal/lsp: handle nil pointer in PackageStats 4cea8971
* internal/lsp/source: handle nil pointer in newBuiltinSignature b42590c1
* internal/lsp: avoid panic caused by assuming file ends with newline 9048b464
* internal/lsp: always show signature as the top line in hover 6acd2ab8
* gopls, internal/lsp: support an extra formatting hook for gofumpt 62a0bb78
* internal/lsp: add changeMethods logic to rename check f8240f79
* internal/lsp/source: add Vendor to list of supported commands 01425d70
* internal/analysisinternal: do not initialize {Get,Set}TypeErrors f739c553
* internal/lsp: watch go.{mod,sum} files, as well as Go files fd294ab1
* internal/lsp/cmd: add a -vv flag for higher verbosity 7342f973
* internal/lsp, go/packages: reproduce and fix golang/go#39646 f1c4188a
* internal/lsp: add new go.mod requires to files with unused require 125cc70a
* internal/lsp: fix rename with Windows line endings 55a0fde5
* internal/lsp/regtest: standardize on 20s timeout e327e101
* internal/lsp/regtest: use a common directory for regtest sandboxes e404ca24
* internal/lsp/regtest: remove stray short timeout df98bc6d
* internal/lsp/regtest: add a regtest for golang/go#39296 3544e8c9
* internal/lsp/cache: handle missing mod file 31b9a748
* internal/lsp: check if analysis enabled in convenience fixes 7370b034
* internal/lsp/regtest: await IWL before running tests 134513de
* internal/lsp/source: disable fillstruct by default d5a74533
* internal/lsp/cache: fix race in RunProcessEnvFunc 065b96d3
* internal/lsp: extract highlighted selection to variable 9c9572d6
* internal/imports: require valid options, move LocalPrefix up 416e8f4f
* internal/lsp/analysis/fillstruct: support anonymous structs 9e0a013e
* cmd/goyacc: print newlines more consistently b22de682
* all: update dependencies in go.mod file 682c4542
* internal/lsp/source: handle nil pointer in comment completions 95bc2bdf
@golang golang locked and limited conversation to collaborators Jul 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge 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