x/tools/gopls: "file name collision" error after changing the casing of a filename #47722
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.go version go1.16.3 darwin/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.Output:
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.zsh: command not found: code
v0.27.1
Go: Locate Configured Go Tools
command.Output:
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
After I changed the casing of the file, VSCode Go has gotten into a bad state and thinks there is a duplicate file. However, the project compiles fine, and only 1 file exists in the filesystem and in git. See the screenshot: if you look at the top, I'm hovering the package name to show the error. I've tried the following steps to fix this:
Clear Editor History
Steps to reproduce the behavior:
emailTemplates.go
toemailtemplates.go
emailTemplates
toemailtemplates
Screenshots or recordings
The text was updated successfully, but these errors were encountered: