topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
1.92k stars 124 forks source link

vscode Extension not found (that is not even installed) #609

Closed klausbreyer closed 8 months ago

klausbreyer commented 10 months ago

Hey ya'all. Long time topgrade user, cool feature for the VS Code Extension!

But weird behaviour on my Mac (Sonoma):


── 11:38:01 - Visual Studio Code extensions ────────────────────────────────────
Installing extensions...
Extension 'cssho.vscode-svgviewer' not found.
Make sure you use the full extension ID, including the publisher, e.g.: ms-dotnettools.csharp
Extension 'alefragnani.bookmarks' is already installed.
..
Extension 'timvaneker.serverless-snippets' is already installed.
Failed Installing Extensions: cssho.vscode-svgviewer
Visual Studio Code extensions failed:
   0: Command failed: `/opt/homebrew/bin/code --force --install-extension alefragnani.Bookmarks --install-extension bierner.markdown-mermaid --install-extension bradlc.vscode-tailwindcss --install-extension budparr.language-hugo-vscode --install-extension christian-kohler.npm-intellisense --install-extension coolbear.systemd-unit-file --install-extension cossssmin.posthtml --install-extension cssho.vscode-svgviewer --install-extension DavidAnson.vscode-markdownlint --install-extension dbaeumer.vscode-eslint --install-extension DEVSENSE.composer-php-vscode --install-extension DEVSENSE.intelli-php-vscode --install-extension DEVSENSE.phptools-vscode --install-extension DEVSENSE.profiler-php-vscode --install-extension eamodio.gitlens --install-extension EditorConfig.EditorConfig --install-extension eg2.vscode-npm-script --install-extension esbenp.prettier-vscode --install-extension formulahendry.auto-close-tag --install-extension formulahendry.auto-rename-tag --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --install-extension github.vscode-github-actions --install-extension golang.go --install-extension heybourn.headwind --install-extension jackie-onai.i18next --install-extension jinliming2.vscode-go-template --install-extension kisstkondoros.vscode-codemetrics --install-extension me-dutour-mathieu.vscode-github-actions --install-extension mechatroner.rainbow-csv --install-extension michelemelluso.gitignore --install-extension mike-co.import-sorter --install-extension mikestead.dotenv --install-extension mrmlnc.vscode-duplicate --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension ms-vscode.makefile-tools --install-extension Orta.vscode-jest --install-extension philosowaffle.openapi-designer --install-extension rbbit.typescript-hero --install-extension redhat.vscode-xml --install-extension redhat.vscode-yaml --install-extension reduckted.vscode-gitweblinks --install-extension richie5um2.vscode-sort-json --install-extension robocorp.robotframework-lsp --install-extension syler.sass-indented --install-extension tamasfe.even-better-toml --install-extension techer.open-in-browser --install-extension TimVaneker.serverless-snippets --install-extension wayou.vscode-todo-highlight --install-extension Wscats.eno --install-extension ZainChen.json --install-extension zhoufeng.json-helper --install-extension zhouronghui.propertylist --install-extension znck.grammarly`
   1: `/opt/homebrew/bin/code` failed: exit status: 1

Location:
   src/steps/generic.rs:345
Retry? (y)es/(N)o/(s)hell/(q)uit

I was confused. It was not even installed. The extension in question is even unpublished!

So I had a look. I found a trace in ~/Library/Application Support/Code/User/sync/extensions/lastCycextensions.json

lastSyncextensions.json

I don't know what you are parsing for this update script, but it should check if extensions are still there, I think.

Cheers, Klaus

SteveLauC commented 10 months ago

Could you please try:

This is the interface we use to collect your extension list

$ code --list-extensions
SteveLauC commented 10 months ago

From the VS Code GUI interface, is this extension installed?

It was not even installed

I guess the answer is no

If their GUI and CLI are giving different results, this is probably a bug of VS Code, and we should solve the upstream issue first


BTW, do you remeber how did you install this extension? Did you manually install it (i.e., from source, you build it and install it)

klausbreyer commented 10 months ago

Sadly, I do not remember how and when I installed the extension.

It is there when listing:

code --list-extensions
alefragnani.Bookmarks
bierner.markdown-mermaid
bradlc.vscode-tailwindcss
budparr.language-hugo-vscode
christian-kohler.npm-intellisense
coolbear.systemd-unit-file
cossssmin.posthtml
cssho.vscode-svgviewer
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
DEVSENSE.composer-php-vscode
DEVSENSE.intelli-php-vscode
DEVSENSE.phptools-vscode
DEVSENSE.profiler-php-vscode
eamodio.gitlens
EditorConfig.EditorConfig
eg2.vscode-npm-script
esbenp.prettier-vscode
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
GitHub.copilot
GitHub.copilot-chat
github.vscode-github-actions
golang.go
heybourn.headwind
jackie-onai.i18next
jinliming2.vscode-go-template
kisstkondoros.vscode-codemetrics
me-dutour-mathieu.vscode-github-actions
mechatroner.rainbow-csv
michelemelluso.gitignore
mike-co.import-sorter
mikestead.dotenv
mrmlnc.vscode-duplicate
ms-python.python
ms-python.vscode-pylance
ms-vscode.makefile-tools
Orta.vscode-jest
philosowaffle.openapi-designer
rbbit.typescript-hero
redhat.vscode-xml
redhat.vscode-yaml
reduckted.vscode-gitweblinks
richie5um2.vscode-sort-json
robocorp.robotframework-lsp
syler.sass-indented
tamasfe.even-better-toml
techer.open-in-browser
TimVaneker.serverless-snippets
wayou.vscode-todo-highlight
Wscats.eno
ZainChen.json
zhoufeng.json-helper
zhouronghui.propertylist
znck.grammarly

But not in the interface: (I guess because it is pulled from the marketplace?)

grafik grafik
SteveLauC commented 10 months ago

Well, their CLI and GUI are behaving differently, I think we should report this to them, but since we don't know how this extension gets installed, we don't know how to reproduce the issue...

klausbreyer commented 10 months ago

I guess it was mostly because the extension was pulled of the marketplace. Hard to reproduce, yes.

I uninstalled it with this:

code --uninstall-extension cssho.vscode-svgviewer

now I am fine.

In case somebody stumbles upon this ticket.