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: go to definition breaks gopls #38503

lzambarda opened this issue Apr 17, 2020 · 2 comments

x/tools/gopls: go to definition breaks gopls #38503

lzambarda opened this issue Apr 17, 2020 · 2 comments


Copy link

@lzambarda lzambarda commented Apr 17, 2020

Please answer these questions before submitting your issue. Thanks!

What did you do?

Tried to go to the definition of a function declared in a module.

What did you expect to see?

The module file containing the function opened in a new tab, along with the cursor at the line of the function.

What did you see instead?

VSCode hanged for some seconds and gopls stopped working. "Go To Definition" does not work for anything, even variables in the same file.

Build info 0.4.0 h1:G4+YP9kaV4dJb79J5MobyApxX493Qa6VoiTceUmxqik= h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ= h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= h1:DUwLyMDMUauGMd9kSLIlhhYJNELm06HuxeBdkFkeax4= h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U= h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info

go version go1.13 darwin/amd64

IDE info

Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:07:18.473Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
OS: Darwin x64 18.7.0
@gopherbot gopherbot added this to the Unreleased milestone Apr 17, 2020
Copy link

@gopherbot gopherbot commented Apr 17, 2020

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.

Copy link

@lzambarda lzambarda commented Apr 17, 2020

Looks like this was due to my go.mod being corrupted. As soon as I reverted the changes on the go.mod file, gopls started working again.

@lzambarda lzambarda closed this Apr 17, 2020
@golang golang locked and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants