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: cannot working lsp definition #39884
Comments
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. |
Can you please share the information requested in the issue template, as well as in the Troubleshooting guide linked above? |
@stamblerre Sorry, I posted before I wrote the information |
No worries. I think you need to open your workspace at the |
@stamblerre Thank you :) |
I'm sorry, but I'm not familiar with |
@stamblerre I misunderstood that change workspace is gopls's features |
Ah I see. Yeah my guess is that changing your workspace should be as simple as opening Vim with a different directory, but I know some editors have commands to change workspaces. |
@stamblerre Thank you for helping me :) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
:LspDefinition
No definition found
main.go is below. I can't found xorm package when I use gopls.
My project layout is below.
xorm already has downloaded.
When I run editor and executing
:LspDefinition
,vim-lsp
output below logs.log
vim-lspWhat did you expect to see?
Can jump some definitoins.
What did you see instead?
Cannot jump some definitions.
The text was updated successfully, but these errors were encountered: