You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where are these logs coming from? They don't look like they're created by vim-go. The issue template asks for information that wasn't provided here, too.
Closing, as it does not seem to be vim-go related. If you believe this is being closed incorrectly, please create a new issue and provide the information that the issue template asks for.
Where are these logs coming from? They don't look like they're created by vim-go. The issue template asks for information that wasn't provided here, too.
Closing, as it does not seem to be vim-go related. If you believe this is being closed incorrectly, please create a new issue and provide the information that the issue template asks for.
I'm sorry, the logs are from interactions with gopls.
I forgot that these are not the logs provided by vim-go.
I should provide some reproduction methods.
Such as:
This will be very slow, and we can see warn messages: vim-go: could not determine appropriate working directory for gopls
The direct reason is that we cannot execute go env GOMOD in the directory where theencoding/json/encode.go is located.
I dont think this is due to vim-go, I just want to inform other users.
Of course, it would be even better if we could accommodate this situation.
What happened
I’ve noticed that GoDef has significantly slowed down when using Go >= 1.22.
The logs for jumping to
json.Marshal
, 4th line show than it took 2 seconds.Why
vim-go's call chain: DidOpen -> ModuleRoot -> go env GOMOD.
However, we can't invoke
go env
in go's src directory when go>=1.22.Go inferred an incorrect version, it should be go1.22.x
Quick fix
Set env GOTOOLCHAIN=go1.22.x
The text was updated successfully, but these errors were encountered: