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

Vscode : Case sensitive issue is back #1341

Closed
vraravam opened this issue Apr 9, 2024 · 6 comments
Closed

Vscode : Case sensitive issue is back #1341

vraravam opened this issue Apr 9, 2024 · 6 comments
Labels

Comments

@vraravam
Copy link
Contributor

vraravam commented Apr 9, 2024

this was fixed in an earlier PR that I had raised a couple of months ago, and it had been fixed at that time. But, when I rerun the same commands now, the vscode extensions that have upper and lower case characters in the extension id are now being cleaned up forcibly.
My Brewfile is here: https://gist.github.com/vraravam/8c9eae91a3750bed86b81e3a4711f842
I can confirm that only those extensions that have both upper and lower case characters are affected.

@MikeMcQuaid
Copy link
Member

are now being cleaned up forcibly

What does this mean?

To help us debug this issue can you explain:

  • What you were trying to do (and why)
  • What happened
  • What you expected to happen
  • Step-by-step reproduction instructions (with as minimal input data as possible)

@vraravam
Copy link
Contributor Author

vraravam commented Apr 9, 2024

  1. Use the brewfile from the home folder (link in the original description)
  2. brew bundle check || brew bundle --all --cleanup; brew bundle cleanup -f; brew cleanup --prune=all; brew autoremove; brew upgrade
  3. The above set of commands uninstalls the following vscode extensions
    a. BrandonKirbyson.vscode-animations
    b. BriteSnow.vscode-toggle-quotes
    c. DavidAnson.vscode-markdownlint
    d. DigitalBrainstem.javascript-ejs-support
    e. EditorConfig.EditorConfig
    f. IBM.output-colorizer

(and others that have both upper and lower case characters in the extension id

@vraravam
Copy link
Contributor Author

vraravam commented Apr 9, 2024

This was originally opened as #1302

@MikeMcQuaid
Copy link
Member

I cannot reproduce on multiple levels:

As a result, it seems likely that you are on an old version of homebrew-bundle, can you check please?

If you are not:

  1. Use the brewfile from the home folder (link in the original description)

Please provide minimal input data here.

2. brew bundle check || brew bundle --all --cleanup; brew bundle cleanup -f; brew cleanup --prune=all; brew autoremove; brew upgrade

And provide minimal commands. These should not all be necessary to reproduce.

Ideally: try to open a PR. Thanks!

@MikeMcQuaid MikeMcQuaid closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@vraravam
Copy link
Contributor Author

vraravam commented Apr 9, 2024

thanks @MikeMcQuaid .

  1. The PR vscode_extension cleanup: downcase extension names before comparison while evaluating for cleanup #1304 was in fact submitted by me for the same (older) issue
  2. The Brewfile that you have linked (from your gist) might be the reason its not showing up since it has all the extension ids in lower case.

Here's my investigation: When I go into VSCode, go to the Extensions view, click on 1 of the extensions, (for eg editorconfig), click on the gear icon, and select the "Copy Extension ID", the text that's copied is NOT all lowercase. I would assume that any other user is also following similar steps when adding a new extension, they follow the same steps.
Screenshot 2024-04-09 at 2 26 33 PM

For the editorconfig extension, the text that's copied is EditorConfig.EditorConfig and not editorconfig.editorconfig

If I run code --list-extensions, i realize that it dumps everything in lowercase - but, that's an inconsistency in how the CLI behaves vs what the original extension author has put as the id.

@MikeMcQuaid
Copy link
Member

MikeMcQuaid commented Apr 9, 2024

@vraravam I know the text is not always lowercase. My point is: even if it is lowercase we only compare lowercase names to lowercase names. Even when I edit my Brewfile manually to not have lowercase names: I cannot reproduce your issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants