-
-
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
When going to definition it shows Error detected while processing function go#guru#SameIds #2162
Comments
Do you have the same problem with latest master? |
closing due to lack of feedback |
I can repro this locally on vim-go master @ 5eab407 Steps to repro for me are:
My env details:
|
Move all script scoped function definitions within a function out of those functions, because defining them within a function causes them to be redefined each time the function is executed. When the previous definition is still in use, errors can result. Fixes fatih#2162
Thank you for confirming @entombedvirus . With your steps and the vim-go settings you provided, I was able to identify the problem. Please open another issue if you find that it's still a problem for you. |
What did you do? (required. The issue will be closed when not provided.)
Go to the definition of an interface, it works correctly but if I go several times ramdonly it fails. Once it fails the first time, it fails always until restart nvim.
When it fails and I do
gd
it shows on the bottom:I press then enter and it goes to the definition.
What did you expect to happen?
Not show the error.
What happened instead?
Showed an error and after it it goes to the definition.
Configuration (MUST fill this out):
vim-go version: 1.19
Vim version (first three lines from
:version
):NVIM v0.3.4
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.12 darwin/amd64
Go environment (
go env
):The text was updated successfully, but these errors were encountered: