Skip to content
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

x/tools/gopls: improve messages for path case mismatch errors #47509

Closed
hyangah opened this issue Aug 3, 2021 · 1 comment
Closed

x/tools/gopls: improve messages for path case mismatch errors #47509

hyangah opened this issue Aug 3, 2021 · 1 comment
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

Comments

@hyangah
Copy link
Contributor

hyangah commented Aug 3, 2021

https://stackoverflow.com/questions/68615440/invalid-workspace-configuration-case-mismatch-in-path-in-golang

Screen Shot 2021-08-02 at 9 26 18 PM

The above error message does not show why it is wrong and how to fix it.
Improve the error message.

The easiest way to reproduce the problem is, on Mac OS:

  1. create a go module in a folder whose path includes upper case (e.g. ~/Desktop/foo)
  2. create a workspace setting file using a lower case file path E.g.,
  {
  "folders": [
  	{
  		"name": "foo",
  		"path": "/Users/hakim/desktop/foo"
  	}
  ],
  }
  1. open the workspace.
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Aug 3, 2021
@gopherbot gopherbot added this to the Unreleased milestone Aug 3, 2021
@gopherbot
Copy link

Change https://golang.org/cl/339352 mentions this issue: internal/lsp/cache: clarify an error message about mismatching casing

@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.7.2 Aug 3, 2021
@golang golang locked and limited conversation to collaborators Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

3 participants