x/tools/gopls: autoimport keeps importing the wrong package #46471
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In a newly added .go file, write a function which refers to the OpenGL package
gl
, which does not yet have a matching import-statement in the file, such as:Then save the file.
What did you expect to see?
The package to be auto-imported (save action) by the same path already used in many other .go files within the workspace, namely:
"github.com/go-gl/gl/v3.3-core/gl"
What did you see instead?
The following import is being added automatically instead:
"github.com/go-gl/gl/v2.1/gl"
The text was updated successfully, but these errors were encountered: