Skip to content

x/tools/gopls: Workspace never comes up (no response to workspace/configuration) #41976

Closed
@evanmoses-okta

Description

@evanmoses-okta

ATTENTION: Please answer these questions BEFORE submitting your issue. Thanks!

What did you do?

I started up gopls from Emacs on my (large) work project. All further interaction with gopls times out. Gopls is working fine on my other modules/projects.

What did you expect to see?

A working gopls with completion, jump-to-definition, etc.

What did you see instead?

All interactions with the language server time out. In the gopls logs I can see that there is never a response to workspace/configuration, that is, I see this but there's no corresponding response:

[Trace - 10:09:04.294 AM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///Users/evanmoses/dev/go/src/go.sudo.wtf","section":"gopls"},{"scopeUri":"file:///Users/evanmoses/dev/go/src/go.sudo.wtf","section":"gopls-go.sudo.wtf"}]}

Gopls sits and uses a tiny bit of CPU and ~7M of memory, but I can't see anything happening. Previous versions of gopls have worked properly on this project, although I'm just returning to it after working on other projects for a while so I'm not sure exactly which version stopped working.

This seems to work just fine (the same file I'm viewing in Emacs):

2020/10/14 10:17:58 Info:2020/10/14 10:17:58 go env for /Users/evanmoses/dev/go/src/go.sudo.wtf
(root /Users/evanmoses/dev/go/src/go.sudo.wtf)
(go version go version go1.14.5 darwin/amd64
)
(valid build configuration = true)
(build flags: [])
GO111MODULE=on
GOINSECURE=
GOMODCACHE=
GONOSUMDB=
GOPRIVATE=
GOROOT=/usr/local/Cellar/go/1.14.5/libexec
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
GOCACHE=/Users/evanmoses/Library/Caches/go-build
GOFLAGS=-mod=vendor
GOMOD=/Users/evanmoses/dev/go/src/go.sudo.wtf/go.mod
GONOPROXY=
GOPATH=/Users/evanmoses/dev/go

2020/10/14 10:18:04 Info:2020/10/14 10:18:04 go/packages.Load
	snapshot=0
	directory=/Users/evanmoses/dev/go/src/go.sudo.wtf
	query=[./... builtin]
	packages=364

Build info

golang.org/x/tools/gopls v0.5.1
    golang.org/x/tools/[email protected] h1:AF3Uh7HF08SZpKFfgJO6zfF3bbxyDXWqdkK4kMXiQ1o=
    github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/google/[email protected] h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=
    github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
    golang.org/x/[email protected] h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
    golang.org/x/[email protected] h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=
    golang.org/x/[email protected] h1:1R38tQp22dcHpTKJPjgVa16FhlDy/kHEaCM/ndi/FIc=
    golang.org/x/[email protected] h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
    honnef.co/go/[email protected] h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k=
    mvdan.cc/[email protected] h1:t8TAw9WgTLghti7RYkpPmqk4JtQ3+wcP5GgZqgWeWLQ=
    mvdan.cc/xurls/[email protected] h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions