-
-
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
set GOTOOLCHAIN=go1.22.x when you are using Go>=1.22 #3669
Comments
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 should provide some reproduction methods.
The direct reason is that we cannot execute 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: