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: since a few commits, gopls seems to break every 2m #32545

Closed
primalmotion opened this issue Jun 11, 2019 · 11 comments

Comments

Projects
None yet
5 participants
@primalmotion
Copy link

commented Jun 11, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.3 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/f1/_f3ghgmj7l352ypkbkjkxd7w0000gn/T/go-build905666433=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I pulled latest after a week or two

What did you expect to see?

Gopls to work

What did you see instead?

Using VSCode, I have to reload everything for gopls to work every 2m or so. Otherwise I get random errors:

  • file X is not part of a package
  • package X does not implement Y (while it's been their forever)
  • continuously reports error in go std lib (I probably won't fix these..)
  • formatting stops working with no further message or anything

I don't do anything special and all of this was working pretty well 2 weeks ago. It has become mostly unusable for me :(

@gopherbot gopherbot added this to the Unreleased milestone Jun 11, 2019

@gopherbot gopherbot added the gopls label Jun 11, 2019

@primalmotion primalmotion changed the title x/tools/gopls: since a few commit, gopls seems to break every 2m x/tools/gopls: since a few commits, gopls seems to break every 2m Jun 11, 2019

@thepudds

This comment has been minimized.

Copy link

commented Jun 11, 2019

I’m sorry to hear you are encountering some issues.

Would you be able to supply the logs and other diagnostic information suggested in the troubleshooting section here:

https://github.com/golang/go/wiki/gopls

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

Sure I will try to collect diagnostics

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

this started to happen again (took some time today)

[Info  - 6:57:06 PM] Build info
----------
no module information, gopls not built in module mode

Go info
-------
go version go1.12.3 darwin/amd64

GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/f1/_f3ghgmj7l352ypkbkjkxd7w0000gn/T/go-build729741185=/tmp/go-build -gno-record-gcc-switches -fno-common"

[Info  - 6:57:18 PM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/srv/squall/internal/processors/apiauthorizationpolicies.go:112:8: cannot resolve cmf
[Info  - 6:57:18 PM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/srv/squall/internal/processors/apiauthorizationpolicies.go:112:9: cannot resolve cmf
panic: parse : empty url

goroutine 37 [running]:
golang.org/x/tools/internal/span.URI.Filename(...)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/span/uri.go:27
golang.org/x/tools/internal/span.CompareURI(0xc00022a120, 0x8c, 0x0, 0x0, 0x4051000000000000)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/span/uri.go:64 +0x2f6
golang.org/x/tools/internal/lsp/protocol.(*ColumnMapper).Range(0xc009716120, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4051000000000000, ...)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/protocol/span.go:49 +0xaa
golang.org/x/tools/internal/lsp.toProtocolDocumentSymbols(0xc009716120, 0xc0071f6000, 0x3, 0x4, 0xc0071f6000, 0x3, 0x4)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/symbols.go:35 +0x260
golang.org/x/tools/internal/lsp.(*Server).documentSymbol(0xc0001da900, 0x175af80, 0xc0097160f0, 0xc009a64020, 0xc009a64020, 0x0, 0x0, 0x0, 0xc00308a6e0)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/symbols.go:23 +0x164
golang.org/x/tools/internal/lsp.(*Server).DocumentSymbol(0xc0001da900, 0x175af80, 0xc0097160f0, 0xc009a64020, 0xc009a64020, 0x0, 0x0, 0x0, 0x0)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/server.go:199 +0x4d
golang.org/x/tools/internal/lsp/protocol.serverHandler.func1(0x175af80, 0xc0097160f0, 0xc00022e000, 0xc009d36dc0)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/protocol/tsserver.go:335 +0x53bc
golang.org/x/tools/internal/jsonrpc2.(*Conn).Run.func1(0xc0001bf5c0, 0xc00022e000)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/jsonrpc2/jsonrpc2.go:288 +0x189
created by golang.org/x/tools/internal/jsonrpc2.(*Conn).Run
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/jsonrpc2/jsonrpc2.go:278 +0xba
[Info  - 6:57:21 PM] Connection to server got closed. Server will restart.
[Error - 6:57:21 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:876:25)
	at Object.dispose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:2036:42)
	at LanguageClient.handleConnectionClosed (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/main.js:127:15)
	at closeHandler (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:2023:18)
	at CallbackList.invoke (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:120:36)
	at closeHandler (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:226:26)
	at CallbackList.invoke (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:120:36)
	at StreamMessageReader.fireClose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
	at Socket.listen.readable.on (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
	at Socket.emit (events.js:187:15)
	at Pipe.Socket._destroy._handle.close [as _onclose] (net.js:596:12)
[Info  - 6:57:22 PM] Build info
----------
no module information, gopls not built in module mode

Go info
-------
go version go1.12.3 darwin/amd64

GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/f1/_f3ghgmj7l352ypkbkjkxd7w0000gn/T/go-build799609456=/tmp/go-build -gno-record-gcc-switches -fno-common"

[Info  - 6:57:23 PM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/srv/squall/internal/processors/apiauthorizationpolicies.go:112:23 : cannot find an enclosing function
[Error - 6:57:47 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 7:00:39 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 7:00:40 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 7:00:41 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 7:00:47 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:37:36 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Info  - 11:38:53 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:16: cannot resolve fmt
[Error - 11:38:54 AM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:29:4: expected selector or type assertion, found 'if' (and 1 more errors)
  Code: 0 
[Info  - 11:38:54 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:17: cannot resolve fmt
[Info  - 11:38:57 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:16: cannot resolve fmt
[Info  - 11:38:57 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:17: cannot resolve fmt
[Info  - 11:38:57 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:21: cannot resolve fmt
[Info  - 11:38:57 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:22: cannot resolve fmt
[Info  - 11:38:59 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:18: cannot resolve fmt
[Info  - 11:38:59 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:21: cannot resolve fmt
[Info  - 11:38:59 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:22: cannot resolve fmt
[Info  - 11:38:59 AM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:23: cannot resolve fmt
[Info  - 11:38:59 AM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:24 : cannot get type for Fun *ast.SelectorExpr (&{fmt Println})
[Info  - 11:39:05 AM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go:27:32 : cannot get type for Fun *ast.SelectorExpr (&{fmt Println})
[Error - 11:39:50 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:39:51 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:39:52 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:40:10 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:40:12 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:40:13 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:40:59 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:41:27 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:41:35 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:41:35 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:41:40 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:04 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:12 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:12 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:23 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:28 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:43 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:42:44 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:26 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:36 AM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:36 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:43:36 AM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:00 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:01 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:01 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:02 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:08 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:08 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:09 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:10 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:10 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:45:11 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:46:28 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:46:29 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:46:33 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:49:07 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:49:08 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:50:01 AM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 11:50:10 AM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 11:52:41 AM] Request textDocument/hover failed.
  Message: no object for ident crudcore
  Code: 0 
[Error - 12:01:43 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:01:55 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:02:35 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:02:45 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:03:18 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:03:33 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:03:33 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:03:45 PM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:20 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:26 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:28 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:28 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:29 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:36 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Info  - 12:05:37 PM] no completions found for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go:164:6: this is a definition, of var _ net.Error
[Error - 12:05:39 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:05:54 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:03 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Info  - 12:06:11 PM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go:164:84 : cannot find an enclosing function
unable to parse defer or go from *ast.BadStmt: no defer or go statement found
[Error - 12:06:24 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:28 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:34 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:35 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:38 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:39 PM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 12:06:43 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:07:01 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:3: expected ';', found ','
  Code: 0 
[Error - 12:07:02 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:3: expected ';', found ','
  Code: 0 
[Error - 12:07:10 PM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Error - 12:07:14 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
unable to parse defer or go from *ast.BadStmt: no defer or go statement found
[Error - 12:07:30 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:2: expected selector or type assertion, found '}' (and 1 more errors)
  Code: 0 
panic: parse : empty url

goroutine 37 [running]:
golang.org/x/tools/internal/span.URI.Filename(...)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/span/uri.go:27
golang.org/x/tools/internal/span.CompareURI(0xc007b57180, 0x6f, 0x0, 0x0, 0x4056000000000000)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/span/uri.go:64 +0x2f6
golang.org/x/tools/internal/lsp/protocol.(*ColumnMapper).Range(0xc01fe691d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4056000000000000, ...)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/protocol/span.go:49 +0xaa
golang.org/x/tools/internal/lsp.toProtocolDocumentSymbols(0xc01fe691d0, 0xc01ca43200, 0x7, 0x8, 0xc01ca43200, 0x7, 0x8)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/symbols.go:35 +0x260
golang.org/x/tools/internal/lsp.(*Server).documentSymbol(0xc00010ec00, 0x175af80, 0xc01fe691a0, 0xc01fedd580, 0xc01fedd580, 0x0, 0x0, 0x0, 0xc026236d20)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/symbols.go:23 +0x164
golang.org/x/tools/internal/lsp.(*Server).DocumentSymbol(0xc00010ec00, 0x175af80, 0xc01fe691a0, 0xc01fedd580, 0xc01fedd580, 0x0, 0x0, 0xc01fe6ea80, 0x0)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/server.go:199 +0x4d
golang.org/x/tools/internal/lsp/protocol.serverHandler.func1(0x175af80, 0xc01fe691a0, 0xc00018a3f0, 0xc01fe6eb40)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/lsp/protocol/tsserver.go:335 +0x53bc
golang.org/x/tools/internal/jsonrpc2.(*Conn).Run.func1(0xc0000bfe00, 0xc00018a3f0)
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/jsonrpc2/jsonrpc2.go:288 +0x189
created by golang.org/x/tools/internal/jsonrpc2.(*Conn).Run
	/Users/tonio/Documents/Aporeto/workspace/code/go/src/golang.org/x/tools/internal/jsonrpc2/jsonrpc2.go:278 +0xba
[Info  - 12:07:30 PM] Connection to server got closed. Server will restart.
[Error - 12:07:30 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:876:25)
	at Object.dispose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:2036:42)
	at LanguageClient.handleConnectionClosed (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/main.js:127:15)
	at closeHandler (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-languageclient/lib/client.js:2023:18)
	at CallbackList.invoke (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:120:36)
	at closeHandler (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:226:26)
	at CallbackList.invoke (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:120:36)
	at StreamMessageReader.fireClose (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
	at Socket.listen.readable.on (/Users/tonio/.vscode/extensions/ms-vscode.go-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
	at Socket.emit (events.js:187:15)
	at Pipe.Socket._destroy._handle.close [as _onclose] (net.js:596:12)
[Info  - 12:07:31 PM] Build info
----------
version v0.0.1-20190607+alpha, built in $GOPATH mode
Go info
-------
go version go1.12.3 darwin/amd64

GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/f1/_f3ghgmj7l352ypkbkjkxd7w0000gn/T/go-build581340126=/tmp/go-build -gno-record-gcc-switches -fno-common"

unable to parse defer or go from *ast.BadStmt: no defer or go statement found
[Error - 12:07:35 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:2: expected selector or type assertion, found '}' (and 1 more errors)
  Code: 0 
unable to parse defer or go from *ast.BadStmt: no defer or go statement found
[Error - 12:07:36 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:2: expected selector or type assertion, found '}' (and 1 more errors)
  Code: 0 
[Error - 12:07:36 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:2: expected selector or type assertion, found '}' (and 1 more errors)
  Code: 0 
[Error - 12:07:41 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:123:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:50 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:52 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:53 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:55 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:55 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Info  - 12:07:56 PM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:121:30 : cannot find signature for Fun *ast.Ident (namespaceZoningInfo)
[Error - 12:07:56 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:57 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:57 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:07:59 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:08:00 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:74: missing ',' in argument list (and 10 more errors)
  Code: 0 
[Error - 12:08:01 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:124:68: expected operand, found ')' (and 10 more errors)
  Code: 0 
[Error - 12:08:02 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:02 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:04 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:04 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:05 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:05 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:06 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:11 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:11 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:14 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:132:13: illegal character U+0024 '$' (and 5 more errors)
  Code: 0 
[Error - 12:08:15 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:132:13: illegal character U+0024 '$' (and 5 more errors)
  Code: 0 
[Error - 12:08:16 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:132:13: illegal character U+0024 '$' (and 5 more errors)
  Code: 0 
[Error - 12:08:17 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:132:13: expected operand, found ':' (and 5 more errors)
  Code: 0 
[Error - 12:08:17 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:132:13: illegal character U+0024 '$' (and 5 more errors)
  Code: 0 
[Error - 12:08:18 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:10: missing ',' in composite literal
  Code: 0 
[Error - 12:08:19 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:10: missing ',' in composite literal
  Code: 0 
[Error - 12:08:19 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:10: missing ',' in composite literal
  Code: 0 
[Error - 12:08:20 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:10: missing ',' in composite literal
  Code: 0 
[Error - 12:08:21 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:4: missing ',' in composite literal (and 5 more errors)
  Code: 0 
[Error - 12:08:23 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:4: missing ',' in composite literal (and 5 more errors)
  Code: 0 
[Error - 12:08:26 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:28 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:5: expected expression (and 5 more errors)
  Code: 0 
[Error - 12:08:28 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:133:5: expected expression (and 5 more errors)
  Code: 0 
[Error - 12:08:45 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:46 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:08:47 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:01 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:60: expected operand, found '}' (and 5 more errors)
  Code: 0 
[Error - 12:09:11 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:64: expected selector or type assertion, found ""
  Code: 0 
[Error - 12:09:12 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:71: missing ',' in composite literal
  Code: 0 
[Error - 12:09:12 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:71: missing ',' in composite literal
  Code: 0 
[Error - 12:09:13 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:134:71: missing ',' in composite literal
  Code: 0 
[Error - 12:09:30 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:42 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:43 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:46 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:46 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:09:49 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:11:12 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:11:18 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:11:20 PM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Info  - 12:11:23 PM] no signature help for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:129:17 : cannot find an enclosing function
[Error - 12:11:24 PM] Request textDocument/codeAction failed.
  Message: /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go:130:18: expected operand, found ')' (and 1 more errors)
  Code: 0 
[Error - 12:16:52 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:17:45 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:18:00 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:18:09 PM] Request textDocument/documentHighlight failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:18:23 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}: no such file or directory
  Code: 0 
[Error - 12:18:23 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:18:23 PM] Request textDocument/codeAction failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:18:30 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:18:31 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:18:32 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:18:32 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:18:32 PM] Request textDocument/documentLink failed.
  Message: no AST for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D
  Code: 0 
[Error - 12:31:42 PM] Request textDocument/documentHighlight failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:31:42 PM] Request textDocument/codeAction failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:31:45 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:46 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:46 PM] Request textDocument/hover failed.
  Message: no AST for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D
  Code: 0 
[Error - 12:31:47 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:48 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:48 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:49 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:49 PM] Request textDocument/hover failed.
  Message: no AST for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D
  Code: 0 
[Error - 12:31:50 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:50 PM] unable to check package for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D: loadParseTypeCheck: no package found for /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":"HEAD"}
[Error - 12:31:50 PM] Request textDocument/hover failed.
  Message: no AST for file:///Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%3F%7B%22path%22:%22/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go%22,%22ref%22:%22HEAD%22%7D
  Code: 0 
[Error - 12:31:50 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:31:50 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/sharding/nszoning.go","ref":""}: no such file or directory
  Code: 0 
[Error - 12:40:35 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:40:35 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
unable to parse defer or go from *ast.BadStmt: no defer or go statement found
unable to parse defer or go from *ast.BadStmt: no defer or go statement found
[Error - 12:41:03 PM] Request textDocument/documentHighlight failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:03 PM] Request textDocument/definition failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:06 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:07 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:10 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:10 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/remoteprocessor.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:16 PM] Request textDocument/documentLink failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 12:41:17 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Error - 12:41:17 PM] Request textDocument/hover failed.
  Message: open /Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/git:/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go?{"path":"/Users/tonio/Documents/Aporeto/workspace/code/go/src/go.aporeto.io/backend/internal/crudcore/hooks.go","ref":"~"}: no such file or directory
  Code: 0 
[Error - 1:02:01 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
[Info  - 1:32:42 PM] Connection to server got closed. Server will restart.
[Info  - 1:32:42 PM] Build info
----------
version v0.0.1-20190607+alpha, built in $GOPATH mode
Go info
-------
go version go1.12.3 darwin/amd64

GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/f1/_f3ghgmj7l352ypkbkjkxd7w0000gn/T/go-build737829392=/tmp/go-build -gno-record-gcc-switches -fno-common"

[Error - 2:17:57 PM] Request textDocument/hover failed.
  Message: no identifier found
  Code: 0 
@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

and this is what shows my error window

Screen Shot 2019-06-11 at 14 20 57

@ianthehat

This comment has been minimized.

Copy link

commented Jun 11, 2019

Looks like you were hitting the empty url issue that was fixed earlier today in https://go-review.googlesource.com/c/tools/+/181677
The rest of the log looks mostly normal. Could you try updating to tip and seeing if it got better?

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

I was already on the tip..

I've reloaded all my VSCode windows. I'll report if (when) this happens again

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

happened again. Nothing interesting in gopls output but this

Screen Shot 2019-06-11 at 16 51 17

and when I try to click on one of the errors:

Screen Shot 2019-06-11 at 16 52 04

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 12, 2019

I'm not sure but this seems to happen when there are file movements (git pull, switch branch, renaming a file etc). But I'm not 100% sure

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

When you switch branches, you will have to reload your instance of VSCode. We don't yet support watching files on disk, but you can track our work on that on #31553.

Renaming a file will likely cause errors to appear though. LSP only tells us if a file has been closed or opened, so there is no clear way for us to detect that. Thanks for reporting, filed #32562.

@primalmotion

This comment has been minimized.

Copy link
Author

commented Jun 12, 2019

@stamblerre ah! that may be the cause. I was working on a huge refactoring and moved a tons of files again and again, which would explain these issues then. I will follow the 2 tickets mentioned above

Thanks!

@stamblerre

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

Great, thank you for the report! Closing this issue then. Feel free to reopen if something else comes up.

@stamblerre stamblerre closed this Jun 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.