-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
vim-go: godef: no declaration found for &{ controllers Test} in other package #3416
Comments
i'm really need help; |
Within |
The cursor disappears, vim freezes, CPU usage is high, and finally the godef fails |
That's not quite my question, though it does lead to more. My original question is where the cursor is within And more questions: How large is this project? Your original report is quite sparse on details. It would be helpful if you could provide a clear replication path. Does this happen on any project, or just this one project? Does it happen in all definitions that are not in the |
Sorry, I'm starting to misunderstand the question you gave me. When jumping to the definition for the first time, the cursor is on the function name. My project size is 79MB. It only happens when my project references other packages that I define. But other third-party packages, such as gin, etc. are no problem. But I checked the import, all are normal. |
|
Do you have any binary literals in your |
I think the problem you're encountering is a problem with I'd recommend switching |
no |
Thanks a lot, it worked fine after I switched to gopls. But I don't know why there is a problem with godef as it hasn't happened before。Thanks!!! Wish vim-go better and better!! |
What did you do? (required: The issue will be closed when not provided)
I installed golang from wsl2 (go mod is not enabled), configured vim plugins such as: vim-go, etc.; and edited my project;
What did you expect to happen?
Godef can be used in other package; like "package test"
What happened instead?
When I use the godef jump function in the main package, it is normal; but when I continue to use the godef jump other function after jumping from the main package, vim-go displays "vim-go: godef: no declaration found for &{ controllers Test}"
Configuration (MUST fill this out):
vim-go version:
latest vim-go
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.1
Go version (
go version
):go version go1.18 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: