topgrade-rs / topgrade

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

pre-release version of vscode extension update error #589

Closed ErnestDong closed 8 months ago

ErnestDong commented 12 months ago

Erroneous Behavior

error when updating vscode extensions which are not released, such as debugpy

topgrade --only vscode
...
Can't install release version of 'ms-python.debugpy' extension because it has no release version.
Failed Installing Extensions: ms-python.debugpy

Expected Behavior

skip or update such extensions with preview

Steps to reproduce

install extensions without a release version, such as debugpy.

Possible Cause (Optional)

code cli fails install such extension

Problem persists without calling from topgrade

Did you run topgrade through Remote Execution

If yes, does the issue still occur when you run topgrade directlly in your remote host

Configuration file (Optional)

Additional Details

Verbose Output (topgrade -v)

➜  topgrade -v
DEBUG Configuration at /Users/dcy/.config/topgrade.toml
DEBUG Path ~/Code/bypass-paywalls-chrome expanded to /Users/dcy/Code/bypass-paywalls-chrome
DEBUG Version: 13.0.0
DEBUG OS: x86_64-apple-darwin
DEBUG Args { inner: ["topgrade", "-v"] }
DEBUG Binary path: Ok("/usr/local/bin/topgrade")
DEBUG self-update Feature Enabled: false
DEBUG Configuration: Config { opt: CommandLineArgs { edit_config: false, show_config_reference: false, run_in_tmux: false, cleanup: false, dry_run: false, no_retry: false, disable: [], only: [], custom_commands: [], env: [], verbose: true, keep_at_end: false, skip_notify: false, yes: None, disable_predefined_git_repos: false, config: None, remote_host_limit: None, show_skipped: false, log_filter: "warn", gen_completion: None, gen_manpage: false, no_self_update: false }, config_file: ConfigFile { include: None, misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: None, ignore_failures: Some([Tldr, Containers]), remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: Some(false), display_time: Some(true), assume_yes: Some(true), no_retry: None, run_in_tmux: None, cleanup: Some(true), notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: None, commands: Some({}), python: None, composer: None, brew: Some(Brew { greedy_cask: Some(true), autoremove: None }), linux: None, git: Some(Git { max_concurrency: None, pull_arguments: None, push_arguments: None, repos: Some(["/Users/dcy/Code/bypass-paywalls-chrome"]), pull_only_repos: None, push_only_repos: None, pull_predefined: None }), windows: None, npm: None, yarn: None, vim: None, firmware: None, vagrant: None, flatpak: None, distrobox: None }, allowed_steps: [AM, AppMan, Asdf, Atom, Bin, Bob, BrewCask, BrewFormula, Bun, Cargo, Chezmoi, Chocolatey, Choosenim, Composer, Conda, ConfigUpdate, Containers, CustomCommands, DebGet, Deno, Distrobox, DkpPacman, Dotnet, Emacs, Firmware, Flatpak, Flutter, Fossil, Gcloud, Gem, Ghcup, GithubCliExtensions, GitRepos, GnomeShellExtensions, Go, Guix, Haxelib, Helm, HomeManager, Jetpack, Julia, Juliaup, Kakoune, Helix, Krew, Lure, Macports, Mamba, Miktex, Mas, Maza, Micro, Myrepos, Nix, Node, Opam, Pacdef, Pacstall, Pearl, Pip3, PipReview, PipReviewLocal, Pipupgrade, Pipx, Pkg, Pkgin, Pnpm, Powershell, Protonup, Raco, Rcm, Remotes, Restarts, Rtcl, RubyGems, Rustup, Scoop, Sdkman, SelfUpdate, Sheldon, Shell, Snap, Sparkle, Spicetify, Stack, Stew, System, Tldr, Tlmgr, Tmux, Toolbx, Vagrant, Vcpkg, Vim, Vscode, Winget, Wsl, WslUpdate, Yadm, Yarn] }
DEBUG Detected "/usr/local/bin/git" as "git"
DEBUG Cannot find "pwsh"
DEBUG Cannot find "powershell"
DEBUG Path "/Users/dcy/.config/emacs" doesn't exist
DEBUG Path "/Users/dcy/.emacs.d" doesn't exist
DEBUG Cannot find "doas"
DEBUG Detected "/usr/bin/sudo" as "sudo"
DEBUG Step "Brew (ARM)"
DEBUG Step "Brew (Intel)"
DEBUG Detected "/usr/local/bin/brew" as "/usr/local/bin/brew"

── 20:55:55 - Brew ─────────────────────────────────────────────────────────────
DEBUG Executing command `/usr/local/bin/brew update`
^CDEBUG Command failed: Err(
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283)
DEBUG Step "Brew (Intel)" failed:
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283
Brew (Intel) failed:
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283
Retry? (y)es/(N)o/(s)hell/(q)uit%

~ took 4s
✗  topgrade -V
Topgrade 13.0.0

~
➜  topgrade -v
DEBUG Configuration at /Users/dcy/.config/topgrade.toml
DEBUG Path ~/Code/bypass-paywalls-chrome expanded to /Users/dcy/Code/bypass-paywalls-chrome
DEBUG Version: 13.0.0
DEBUG OS: x86_64-apple-darwin
DEBUG Args { inner: ["topgrade", "-v"] }
DEBUG Binary path: Ok("/usr/local/bin/topgrade")
DEBUG self-update Feature Enabled: false
DEBUG Configuration: Config { opt: CommandLineArgs { edit_config: false, show_config_reference: false, run_in_tmux: false, cleanup: false, dry_run: false, no_retry: false, disable: [], only: [], custom_commands: [], env: [], verbose: true, keep_at_end: false, skip_notify: false, yes: None, disable_predefined_git_repos: false, config: None, remote_host_limit: None, show_skipped: false, log_filter: "warn", gen_completion: None, gen_manpage: false, no_self_update: false }, config_file: ConfigFile { include: None, misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: None, ignore_failures: Some([Tldr, Containers]), remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: Some(false), display_time: Some(true), assume_yes: Some(true), no_retry: None, run_in_tmux: None, cleanup: Some(true), notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: None, commands: Some({}), python: None, composer: None, brew: Some(Brew { greedy_cask: Some(true), autoremove: None }), linux: None, git: Some(Git { max_concurrency: None, pull_arguments: None, push_arguments: None, repos: Some(["/Users/dcy/Code/bypass-paywalls-chrome"]), pull_only_repos: None, push_only_repos: None, pull_predefined: None }), windows: None, npm: None, yarn: None, vim: None, firmware: None, vagrant: None, flatpak: None, distrobox: None }, allowed_steps: [AM, AppMan, Asdf, Atom, Bin, Bob, BrewCask, BrewFormula, Bun, Cargo, Chezmoi, Chocolatey, Choosenim, Composer, Conda, ConfigUpdate, Containers, CustomCommands, DebGet, Deno, Distrobox, DkpPacman, Dotnet, Emacs, Firmware, Flatpak, Flutter, Fossil, Gcloud, Gem, Ghcup, GithubCliExtensions, GitRepos, GnomeShellExtensions, Go, Guix, Haxelib, Helm, HomeManager, Jetpack, Julia, Juliaup, Kakoune, Helix, Krew, Lure, Macports, Mamba, Miktex, Mas, Maza, Micro, Myrepos, Nix, Node, Opam, Pacdef, Pacstall, Pearl, Pip3, PipReview, PipReviewLocal, Pipupgrade, Pipx, Pkg, Pkgin, Pnpm, Powershell, Protonup, Raco, Rcm, Remotes, Restarts, Rtcl, RubyGems, Rustup, Scoop, Sdkman, SelfUpdate, Sheldon, Shell, Snap, Sparkle, Spicetify, Stack, Stew, System, Tldr, Tlmgr, Tmux, Toolbx, Vagrant, Vcpkg, Vim, Vscode, Winget, Wsl, WslUpdate, Yadm, Yarn] }
DEBUG Detected "/usr/local/bin/git" as "git"
DEBUG Cannot find "pwsh"
DEBUG Cannot find "powershell"
DEBUG Path "/Users/dcy/.config/emacs" doesn't exist
DEBUG Path "/Users/dcy/.emacs.d" doesn't exist
DEBUG Cannot find "doas"
DEBUG Detected "/usr/bin/sudo" as "sudo"
DEBUG Step "Brew (ARM)"
DEBUG Step "Brew (Intel)"
DEBUG Detected "/usr/local/bin/brew" as "/usr/local/bin/brew"

── 20:56:58 - Brew ─────────────────────────────────────────────────────────────
DEBUG Executing command `/usr/local/bin/brew update`
HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git as the Homebrew/brew Git remote.
^CDEBUG Command failed: Err(
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283)
DEBUG Step "Brew (Intel)" failed:
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283
Brew (Intel) failed:
   0: Command failed: `/usr/local/bin/brew update`
   1: `/usr/local/bin/brew` failed: signal: 2 (SIGINT)

Location:
   src/steps/os/unix.rs:283
Retry? (y)es/(N)o/(s)hell/(q)uit%

~ took 7s
✗  topgrade --only vscode -v
DEBUG Configuration at /Users/dcy/.config/topgrade.toml
DEBUG Path ~/Code/bypass-paywalls-chrome expanded to /Users/dcy/Code/bypass-paywalls-chrome
DEBUG Version: 13.0.0
DEBUG OS: x86_64-apple-darwin
DEBUG Args { inner: ["topgrade", "--only", "vscode", "-v"] }
DEBUG Binary path: Ok("/usr/local/bin/topgrade")
DEBUG self-update Feature Enabled: false
DEBUG Configuration: Config { opt: CommandLineArgs { edit_config: false, show_config_reference: false, run_in_tmux: false, cleanup: false, dry_run: false, no_retry: false, disable: [], only: [Vscode], custom_commands: [], env: [], verbose: true, keep_at_end: false, skip_notify: false, yes: None, disable_predefined_git_repos: false, config: None, remote_host_limit: None, show_skipped: false, log_filter: "warn", gen_completion: None, gen_manpage: false, no_self_update: false }, config_file: ConfigFile { include: None, misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: None, ignore_failures: Some([Tldr, Containers]), remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: Some(false), display_time: Some(true), assume_yes: Some(true), no_retry: None, run_in_tmux: None, cleanup: Some(true), notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: None, commands: Some({}), python: None, composer: None, brew: Some(Brew { greedy_cask: Some(true), autoremove: None }), linux: None, git: Some(Git { max_concurrency: None, pull_arguments: None, push_arguments: None, repos: Some(["/Users/dcy/Code/bypass-paywalls-chrome"]), pull_only_repos: None, push_only_repos: None, pull_predefined: None }), windows: None, npm: None, yarn: None, vim: None, firmware: None, vagrant: None, flatpak: None, distrobox: None }, allowed_steps: [Vscode] }
DEBUG Detected "/usr/local/bin/git" as "git"
DEBUG Cannot find "pwsh"
DEBUG Cannot find "powershell"
DEBUG Path "/Users/dcy/.config/emacs" doesn't exist
DEBUG Path "/Users/dcy/.emacs.d" doesn't exist
DEBUG Cannot find "doas"
DEBUG Detected "/usr/bin/sudo" as "sudo"
DEBUG Step "Visual Studio Code extensions"
DEBUG Detected "/usr/local/bin/code" as "code"

── 20:57:13 - Visual Studio Code extensions ────────────────────────────────────
DEBUG Executing command `/usr/local/bin/code --list-extensions`
DEBUG Executing command `/usr/local/bin/code --force --install-extension adpyke.codesnap --install-extension albert.TabOut --install-extension bierner.emojisense --install-extension bierner.markdown-mermaid --install-extension charliermarsh.ruff --install-extension ChrisChinchilla.vscode-pandoc --install-extension christian-kohler.path-intellisense --install-extension cweijan.vscode-office --install-extension DavidAnson.vscode-markdownlint --install-extension dracula-theme.theme-dracula --install-extension eamodio.gitlens --install-extension EditorConfig.EditorConfig --install-extension esbenp.prettier-vscode --install-extension filwaline.vscode-postfix-python --install-extension foam.foam-vscode --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --install-extension GitHub.copilot-labs --install-extension GitHub.github-vscode-theme --install-extension GitHub.remotehub --install-extension GitHub.vscode-pull-request-github --install-extension goessner.mdmath --install-extension Gruntfuggly.todo-tree --install-extension hediet.vscode-drawio --install-extension huacat.office-theme --install-extension James-Yu.latex-workshop --install-extension JannisX11.batch-rename-extension --install-extension kisstkondoros.vscode-gutter-preview --install-extension LeetCode.vscode-leetcode --install-extension llvm-vs-code-extensions.vscode-clangd --install-extension LouisWT.regexp-preview --install-extension mads-hartmann.bash-ide-vscode --install-extension mechatroner.rainbow-csv --install-extension mkhl.direnv --install-extension ms-azuretools.vscode-docker --install-extension ms-edgedevtools.vscode-edge-devtools --install-extension ms-python.black-formatter --install-extension ms-python.debugpy --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension ms-toolsai.jupyter --install-extension ms-toolsai.jupyter-keymap --install-extension ms-toolsai.jupyter-renderers --install-extension ms-vscode-remote.remote-containers --install-extension ms-vscode-remote.remote-ssh --install-extension ms-vscode-remote.remote-ssh-edit --install-extension ms-vscode.cmake-tools --install-extension ms-vscode.hexeditor --install-extension ms-vscode.live-server --install-extension ms-vscode.remote-explorer --install-extension ms-vscode.remote-repositories --install-extension notZaki.pandocciter --install-extension OrangeX4.hsnips --install-extension OrangeX4.latex-sympy-calculator --install-extension PKief.material-icon-theme --install-extension ryu1kn.edit-with-shell --install-extension sandcastle.vscode-open --install-extension Souche.vscode-mindmap --install-extension streetsidesoftware.code-spell-checker --install-extension tamasfe.even-better-toml --install-extension tecosaur.latex-utilities --install-extension twxs.cmake --install-extension Tyriar.luna-paint --install-extension usernamehw.errorlens --install-extension vadimcn.vscode-lldb --install-extension VisualStudioExptTeam.intellicode-api-usage-examples --install-extension VisualStudioExptTeam.vscodeintellicode --install-extension WakaTime.vscode-wakatime --install-extension yfzhao.hscopes-booster --install-extension yfzhao.ultra-math-preview --install-extension yzhang.markdown-all-in-one --install-extension zhuangtongfa.material-theme`
Installing extensions...
Extension 'bierner.markdown-mermaid' is already installed.
Extension 'editorconfig.editorconfig' is already installed.
Extension 'esbenp.prettier-vscode' is already installed.
Extension 'github.copilot-chat' is already installed.
Extension 'pkief.material-icon-theme' is already installed.
Extension 'charliermarsh.ruff' is already installed.
Extension 'ms-vscode-remote.remote-ssh-edit' is already installed.
Extension 'mkhl.direnv' is already installed.
Extension 'bierner.emojisense' is already installed.
Extension 'ryu1kn.edit-with-shell' is already installed.
Extension 'ms-edgedevtools.vscode-edge-devtools' is already installed.
Extension 'github.remotehub' is already installed.
Extension 'foam.foam-vscode' is already installed.
Extension 'ms-vscode-remote.remote-containers' is already installed.
Extension 'hediet.vscode-drawio' is already installed.
Extension 'ms-python.vscode-pylance' is already installed.
Extension 'leetcode.vscode-leetcode' is already installed.
Extension 'christian-kohler.path-intellisense' is already installed.
Extension 'orangex4.hsnips' is already installed.
Extension 'ms-vscode.hexeditor' is already installed.
Extension 'ms-vscode-remote.remote-ssh' is already installed.
Extension 'ms-python.black-formatter' is already installed.
Extension 'kisstkondoros.vscode-gutter-preview' is already installed.
Extension 'github.copilot-labs' is already installed.
Extension 'adpyke.codesnap' is already installed.
Extension 'huacat.office-theme' is already installed.
Extension 'albert.tabout' is already installed.
Extension 'orangex4.latex-sympy-calculator' is already installed.
Extension 'tecosaur.latex-utilities' is already installed.
Extension 'cweijan.vscode-office' is already installed.
Extension 'visualstudioexptteam.intellicode-api-usage-examples' is already installed.
Extension 'ms-toolsai.jupyter' is already installed.
Extension 'dracula-theme.theme-dracula' is already installed.
Extension 'goessner.mdmath' is already installed.
Extension 'ms-toolsai.jupyter-keymap' is already installed.
Extension 'tyriar.luna-paint' is already installed.
Extension 'tamasfe.even-better-toml' is already installed.
Extension 'ms-vscode.remote-repositories' is already installed.
Extension 'wakatime.vscode-wakatime' is already installed.
Extension 'mads-hartmann.bash-ide-vscode' is already installed.
Extension 'visualstudioexptteam.vscodeintellicode' is already installed.
Extension 'filwaline.vscode-postfix-python' is already installed.
Extension 'yzhang.markdown-all-in-one' is already installed.
Extension 'souche.vscode-mindmap' is already installed.
Extension 'github.github-vscode-theme' is already installed.
Extension 'ms-vscode.live-server' is already installed.
Extension 'davidanson.vscode-markdownlint' is already installed.
Extension 'ms-python.python' is already installed.
Extension 'ms-toolsai.jupyter-renderers' is already installed.
Extension 'chrischinchilla.vscode-pandoc' is already installed.
Extension 'llvm-vs-code-extensions.vscode-clangd' is already installed.
Extension 'github.vscode-pull-request-github' is already installed.
Extension 'louiswt.regexp-preview' is already installed.
Extension 'jannisx11.batch-rename-extension' is already installed.
Extension 'sandcastle.vscode-open' is already installed.
Extension 'notzaki.pandocciter' is already installed.
Updating the extension 'ms-python.debugpy' to the version 2023.3.12921010
Installing extension 'ms-python.debugpy'...
Extension 'ms-azuretools.vscode-docker' is already installed.
Extension 'mechatroner.rainbow-csv' is already installed.
Extension 'gruntfuggly.todo-tree' is already installed.
Extension 'ms-vscode.remote-explorer' is already installed.
Extension 'streetsidesoftware.code-spell-checker' is already installed.
Extension 'yfzhao.hscopes-booster' is already installed.
Extension 'yfzhao.ultra-math-preview' is already installed.
Extension 'zhuangtongfa.material-theme' is already installed.
Extension 'github.copilot' is already installed.
Extension 'usernamehw.errorlens' is already installed.
Extension 'vadimcn.vscode-lldb' is already installed.
Extension 'twxs.cmake' is already installed.
Extension 'ms-vscode.cmake-tools' is already installed.
Extension 'james-yu.latex-workshop' is already installed.
Extension 'eamodio.gitlens' is already installed.
socket hang up
Failed Installing Extensions: ms-python.debugpy
DEBUG Command failed: Err(
   0: Command failed: `/usr/local/bin/code --force --install-extension adpyke.codesnap --install-extension albert.TabOut --install-extension bierner.emojisense --install-extension bierner.markdown-mermaid --install-extension charliermarsh.ruff --install-extension ChrisChinchilla.vscode-pandoc --install-extension christian-kohler.path-intellisense --install-extension cweijan.vscode-office --install-extension DavidAnson.vscode-markdownlint --install-extension dracula-theme.theme-dracula --install-extension eamodio.gitlens --install-extension EditorConfig.EditorConfig --install-extension esbenp.prettier-vscode --install-extension filwaline.vscode-postfix-python --install-extension foam.foam-vscode --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --install-extension GitHub.copilot-labs --install-extension GitHub.github-vscode-theme --install-extension GitHub.remotehub --install-extension GitHub.vscode-pull-request-github --install-extension goessner.mdmath --install-extension Gruntfuggly.todo-tree --install-extension hediet.vscode-drawio --install-extension huacat.office-theme --install-extension James-Yu.latex-workshop --install-extension JannisX11.batch-rename-extension --install-extension kisstkondoros.vscode-gutter-preview --install-extension LeetCode.vscode-leetcode --install-extension llvm-vs-code-extensions.vscode-clangd --install-extension LouisWT.regexp-preview --install-extension mads-hartmann.bash-ide-vscode --install-extension mechatroner.rainbow-csv --install-extension mkhl.direnv --install-extension ms-azuretools.vscode-docker --install-extension ms-edgedevtools.vscode-edge-devtools --install-extension ms-python.black-formatter --install-extension ms-python.debugpy --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension ms-toolsai.jupyter --install-extension ms-toolsai.jupyter-keymap --install-extension ms-toolsai.jupyter-renderers --install-extension ms-vscode-remote.remote-containers --install-extension ms-vscode-remote.remote-ssh --install-extension ms-vscode-remote.remote-ssh-edit --install-extension ms-vscode.cmake-tools --install-extension ms-vscode.hexeditor --install-extension ms-vscode.live-server --install-extension ms-vscode.remote-explorer --install-extension ms-vscode.remote-repositories --install-extension notZaki.pandocciter --install-extension OrangeX4.hsnips --install-extension OrangeX4.latex-sympy-calculator --install-extension PKief.material-icon-theme --install-extension ryu1kn.edit-with-shell --install-extension sandcastle.vscode-open --install-extension Souche.vscode-mindmap --install-extension streetsidesoftware.code-spell-checker --install-extension tamasfe.even-better-toml --install-extension tecosaur.latex-utilities --install-extension twxs.cmake --install-extension Tyriar.luna-paint --install-extension usernamehw.errorlens --install-extension vadimcn.vscode-lldb --install-extension VisualStudioExptTeam.intellicode-api-usage-examples --install-extension VisualStudioExptTeam.vscodeintellicode --install-extension WakaTime.vscode-wakatime --install-extension yfzhao.hscopes-booster --install-extension yfzhao.ultra-math-preview --install-extension yzhang.markdown-all-in-one --install-extension zhuangtongfa.material-theme`
   1: `/usr/local/bin/code` failed: exit status: 1

Location:
   src/steps/generic.rs:345)
DEBUG Step "Visual Studio Code extensions" failed:
   0: Command failed: `/usr/local/bin/code --force --install-extension adpyke.codesnap --install-extension albert.TabOut --install-extension bierner.emojisense --install-extension bierner.markdown-mermaid --install-extension charliermarsh.ruff --install-extension ChrisChinchilla.vscode-pandoc --install-extension christian-kohler.path-intellisense --install-extension cweijan.vscode-office --install-extension DavidAnson.vscode-markdownlint --install-extension dracula-theme.theme-dracula --install-extension eamodio.gitlens --install-extension EditorConfig.EditorConfig --install-extension esbenp.prettier-vscode --install-extension filwaline.vscode-postfix-python --install-extension foam.foam-vscode --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --install-extension GitHub.copilot-labs --install-extension GitHub.github-vscode-theme --install-extension GitHub.remotehub --install-extension GitHub.vscode-pull-request-github --install-extension goessner.mdmath --install-extension Gruntfuggly.todo-tree --install-extension hediet.vscode-drawio --install-extension huacat.office-theme --install-extension James-Yu.latex-workshop --install-extension JannisX11.batch-rename-extension --install-extension kisstkondoros.vscode-gutter-preview --install-extension LeetCode.vscode-leetcode --install-extension llvm-vs-code-extensions.vscode-clangd --install-extension LouisWT.regexp-preview --install-extension mads-hartmann.bash-ide-vscode --install-extension mechatroner.rainbow-csv --install-extension mkhl.direnv --install-extension ms-azuretools.vscode-docker --install-extension ms-edgedevtools.vscode-edge-devtools --install-extension ms-python.black-formatter --install-extension ms-python.debugpy --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension ms-toolsai.jupyter --install-extension ms-toolsai.jupyter-keymap --install-extension ms-toolsai.jupyter-renderers --install-extension ms-vscode-remote.remote-containers --install-extension ms-vscode-remote.remote-ssh --install-extension ms-vscode-remote.remote-ssh-edit --install-extension ms-vscode.cmake-tools --install-extension ms-vscode.hexeditor --install-extension ms-vscode.live-server --install-extension ms-vscode.remote-explorer --install-extension ms-vscode.remote-repositories --install-extension notZaki.pandocciter --install-extension OrangeX4.hsnips --install-extension OrangeX4.latex-sympy-calculator --install-extension PKief.material-icon-theme --install-extension ryu1kn.edit-with-shell --install-extension sandcastle.vscode-open --install-extension Souche.vscode-mindmap --install-extension streetsidesoftware.code-spell-checker --install-extension tamasfe.even-better-toml --install-extension tecosaur.latex-utilities --install-extension twxs.cmake --install-extension Tyriar.luna-paint --install-extension usernamehw.errorlens --install-extension vadimcn.vscode-lldb --install-extension VisualStudioExptTeam.intellicode-api-usage-examples --install-extension VisualStudioExptTeam.vscodeintellicode --install-extension WakaTime.vscode-wakatime --install-extension yfzhao.hscopes-booster --install-extension yfzhao.ultra-math-preview --install-extension yzhang.markdown-all-in-one --install-extension zhuangtongfa.material-theme`
   1: `/usr/local/bin/code` failed: exit status: 1

Location:
   src/steps/generic.rs:345
Visual Studio Code extensions failed:
   0: Command failed: `/usr/local/bin/code --force --install-extension adpyke.codesnap --install-extension albert.TabOut --install-extension bierner.emojisense --install-extension bierner.markdown-mermaid --install-extension charliermarsh.ruff --install-extension ChrisChinchilla.vscode-pandoc --install-extension christian-kohler.path-intellisense --install-extension cweijan.vscode-office --install-extension DavidAnson.vscode-markdownlint --install-extension dracula-theme.theme-dracula --install-extension eamodio.gitlens --install-extension EditorConfig.EditorConfig --install-extension esbenp.prettier-vscode --install-extension filwaline.vscode-postfix-python --install-extension foam.foam-vscode --install-extension GitHub.copilot --install-extension GitHub.copilot-chat --install-extension GitHub.copilot-labs --install-extension GitHub.github-vscode-theme --install-extension GitHub.remotehub --install-extension GitHub.vscode-pull-request-github --install-extension goessner.mdmath --install-extension Gruntfuggly.todo-tree --install-extension hediet.vscode-drawio --install-extension huacat.office-theme --install-extension James-Yu.latex-workshop --install-extension JannisX11.batch-rename-extension --install-extension kisstkondoros.vscode-gutter-preview --install-extension LeetCode.vscode-leetcode --install-extension llvm-vs-code-extensions.vscode-clangd --install-extension LouisWT.regexp-preview --install-extension mads-hartmann.bash-ide-vscode --install-extension mechatroner.rainbow-csv --install-extension mkhl.direnv --install-extension ms-azuretools.vscode-docker --install-extension ms-edgedevtools.vscode-edge-devtools --install-extension ms-python.black-formatter --install-extension ms-python.debugpy --install-extension ms-python.python --install-extension ms-python.vscode-pylance --install-extension ms-toolsai.jupyter --install-extension ms-toolsai.jupyter-keymap --install-extension ms-toolsai.jupyter-renderers --install-extension ms-vscode-remote.remote-containers --install-extension ms-vscode-remote.remote-ssh --install-extension ms-vscode-remote.remote-ssh-edit --install-extension ms-vscode.cmake-tools --install-extension ms-vscode.hexeditor --install-extension ms-vscode.live-server --install-extension ms-vscode.remote-explorer --install-extension ms-vscode.remote-repositories --install-extension notZaki.pandocciter --install-extension OrangeX4.hsnips --install-extension OrangeX4.latex-sympy-calculator --install-extension PKief.material-icon-theme --install-extension ryu1kn.edit-with-shell --install-extension sandcastle.vscode-open --install-extension Souche.vscode-mindmap --install-extension streetsidesoftware.code-spell-checker --install-extension tamasfe.even-better-toml --install-extension tecosaur.latex-utilities --install-extension twxs.cmake --install-extension Tyriar.luna-paint --install-extension usernamehw.errorlens --install-extension vadimcn.vscode-lldb --install-extension VisualStudioExptTeam.intellicode-api-usage-examples --install-extension VisualStudioExptTeam.vscodeintellicode --install-extension WakaTime.vscode-wakatime --install-extension yfzhao.hscopes-booster --install-extension yfzhao.ultra-math-preview --install-extension yzhang.markdown-all-in-one --install-extension zhuangtongfa.material-theme`
   1: `/usr/local/bin/code` failed: exit status: 1

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

Thanks for this detailed bug report!

IMHO, installing the pre-release version of the extension makes more sense than skipping it as it has already been installed by the user, which means that the user doesn't mind the fact that it is still in pre-release

SteveLauC commented 12 months ago

Could you please provide the output of:

$ code --list-extensions --show-version | grep ms-python.debugpy

And try:

$ code --install-extension ms-python.debugpy --pre-release

to see if this would work

ErnestDong commented 12 months ago

Could you please provide the output of:

$ code --list-extensions --show-version | grep ms-python.debugpy

And try:

$ code --install-extension ms-python.debugpy --pre-release

to see if this would work

it works

➜  code --list-extensions --show-version | grep ms-python.debugpy
Warning: 'show-version' is not in the list of known options, but still passed to Electron/Chromium.
ms-python.debugpy

~
➜  code --install-extension ms-python.debugpy --pre-release

Installing extensions...
Extension 'ms-python.debugpy' v2023.3.12921009 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-python.debugpy@1.2.3'.
SteveLauC commented 12 months ago

➜ code --list-extensions --show-version | grep ms-python.debugpy Warning: 'show-version' is not in the list of known options, but still passed to Electron/Chromium. ms-python.debugpy

I am sorry, it should be:

$ code --list-extensions --show-versions | grep ms-python.debugpy
ErnestDong commented 12 months ago

➜ code --list-extensions --show-version | grep ms-python.debugpy Warning: 'show-version' is not in the list of known options, but still passed to Electron/Chromium. ms-python.debugpy

I am sorry, it should be:

$ code --list-extensions --show-versions | grep ms-python.debugpy
➜  code --list-extensions --show-versions | grep python
filwaline.vscode-postfix-python@0.1.3
ms-python.black-formatter@2023.4.1
ms-python.debugpy@2023.3.12921009
ms-python.python@2023.18.0
ms-python.vscode-pylance@2023.10.30

well, it seems vscode cli does not distinguish pre-release version and the release version.

SteveLauC commented 12 months ago

Yeah, this is unfortunate, I didn't see any options to do this from code --help either, perhaps we should reach out to the VS Code community to seek some help

$ code --help
Visual Studio Code 1.83.1

Usage: code [options][paths...]

To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')

Options
  -d --diff <file> <file>                    Compare two files with each other.
  -m --merge <path1> <path2> <base> <result> Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions and the output file to save merge results.
  -a --add <folder>                          Add folder(s) to the last active window.
  -g --goto <file:line[:character]>          Open a file at the path on the specified line and character position.
  -n --new-window                            Force to open a new window.
  -r --reuse-window                          Force to open a file or folder in an already opened window.
  -w --wait                                  Wait for the files to be closed before returning.
  --locale <locale>                          The locale to use (e.g. en-US or zh-TW).
  --user-data-dir <dir>                      Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
  --profile <profileName>                    Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created. A folder or workspace must be provided for the profile to take effect.
  -h --help                                  Print usage.

Extensions Management
  --extensions-dir <dir>              Set the root path for extensions.
  --list-extensions                   List the installed extensions.
  --show-versions                     Show versions of installed extensions, when using --list-extensions.
  --category <category>               Filters installed extensions by provided category, when using --list-extensions.
  --install-extension <ext-id | path> Installs or updates an extension. The argument is either an extension id or a path to a VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to update to latest version. To install a specific version provide '@${version}'. For
                                      example: 'vscode.csharp@1.2.3'.
  --pre-release                       Installs the pre-release version of the extension, when using --install-extension
  --uninstall-extension <ext-id>      Uninstalls an extension.
  --enable-proposed-api <ext-id>      Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.

Troubleshooting
  -v --version                    Print version.
  --verbose                       Print verbose output (implies --wait).
  --log <level>                   Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'. You can also configure the log level of an extension by passing extension id and log level in the following format:
                                  '${publisher}.${name}:${logLevel}'. For example: 'vscode.csharp:trace'. Can receive one or more such entries.
  -s --status                     Print process usage and diagnostics information.
  --prof-startup                  Run CPU profiler during startup.
  --disable-extensions            Disable all installed extensions. This option is not persisted and is effective only when the command opens a new window.
  --disable-extension <ext-id>    Disable the provided extension. This option is not persisted and is effective only when the command opens a new window.
  --sync <on | off>               Turn sync on or off.
  --inspect-extensions <port>     Allow debugging and profiling of extensions. Check the developer tools for the connection URI.
  --inspect-brk-extensions <port> Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI.
  --disable-gpu                   Disable GPU hardware acceleration.
  --disable-chromium-sandbox      Use this option only when there is requirement to launch the application as sudo user on Linux or when running as an elevated user in an applocker environment on Windows.
  --telemetry                     Shows all telemetry events which VS code collects.

Subcommands
  tunnel       Make the current machine accessible from vscode.dev or other machines through a secure tunnel
  serve-web    Make the current machine accessible from vscode.dev or other machines through a secure tunnel
SteveLauC commented 12 months ago

Issue filed


Before this gets fixed, I recommend disabling this step with the following configuration:

[misc]
disable = ["vscode"]

Since there is nothing we can do at Topgrade (at least for now), I will label this issue upstream

samhanic commented 11 months ago

Some progress about this issue (and the partial duplicate issue https://github.com/topgrade-rs/topgrade/issues/593 ) :

Since I developped this VSCode upgrade in Topgrade, I recently filed the PR https://github.com/microsoft/vscode/pull/197963 in VSCode to have a parsable output listing the origin of each extension (responding to the issue SteveLauC opened).

It will allow a fix in Topgrade to correctly handle:

The PR is currently on debate phase about the precise scope of the issue. When eventually it will be merged and upstreamed in a monthly release, I will create a PR here to fix these extensions update.