-
Notifications
You must be signed in to change notification settings - Fork 645
On 'peek definition' and 'go to definition' godef-gomod doesn't work in sub modules #2180
Comments
Can you try the latest beta version of this extension? It has some fixes that can help. |
I installed 0.7.1-beta.5, then every 'go to definition' trigger takes 10 seconds and shows 'No definition found for xxx'. Setting go docsTool to |
Can you help us figure out why it didn't work in the first place? The stable build doesn't show logs, but if you can download the VS Code Insiders and try the below, I would very much appreciate it.
At this point, the output channel would show the command that was run to get the definition information and any error from it. Please share that |
@ramya-rao-a Thanks for your kind support. The Log(Extension Host) logs:
If I run this command manually, it hangs. However, If without the
The testing code is here: https://github.com/kidlj/demo |
Hower, I installed 0.7.0 still outputs errors:
You may close this issue, thanks. |
Sorry, I don't know why, after experiencing the working extension for a while I quit the editors, and then reopened another project, it failed to work again.
Here is the full logs:
|
I think I found the reason. Here's my testing project directory structure:
You can see that in the uppermost 0.7.0 fails in both scenarios though. The testing project is here: https://github.com/kidlj/demo |
Thanks @kidlj! 0.7.0 failing is expected as it wasn't running @ianthehat Can we expect |
Nope. |
@ramya-rao-a
|
This should be fixed in the latest beta version of this extension |
The fix for this is now out in the latest update (0.9.0) to the Go extension |
When go docsTool setting to
godoc
(the default), it recommends installing godef-gomod, but it doesn't work at all on 'go to definition' or 'peek definition'.Go extension version 0.7.0
The text was updated successfully, but these errors were encountered: