Skip to content

"--force --install-extension" doesn't update to latest version #4372

Closed
microsoft/vscode
#115302

Description

Testing #4340

  • in integrated terminal in docker container run code-insiders --force --install-extension [email protected] to install previous version of Docker extension
  • now try to install latest by omitting the version and using "--force": code-insiders --force --install-extension ms-azuretools.vscode-docker

Observe:
1.9.1 version is not installed:
2021-01-26_18-53-50

I think my confusion originates from the mixed messages about "--install-extension --force":

In the test plan item I read "--force ... installs an extension on remote if is a workspace extension, or local if it is a UI extension."

But this message says: "Extension 'ms-azuretools.vscode-docker' v1.9.1 is already installed. Use '--force' option to update to latest version or provide '@' to install a specific version, for example: 'ms-azuretools.vscode".

Wouldn't it be clearer to have different "--forceSomething" instead of overloading a single magic "--force"? Or even better introduce new options like "--installRemote" or "--installUI".

Activity

  1. changed the title [-]"--force" doesn't update to latest version[/-] [+]"--force --install-extension" doesn't update to latest version[/+] on Jan 26, 2021
  2. aeschli commented on Jan 27, 2021

    @aeschli
    Contributor

    Was that your setup?

    • ms-azuretools.vscode-docker' v1.9.1 installed locally
    • code-insiders --force --install-extension [email protected]. Installs v1.9.0 remotly
    • code-insiders --force --install-extension ms-azuretools.vscode-docker finds it locally and doesn't want to update.

    Sandeep Somavarapu (@sandy081) Do you want to take over? I'm happy to help, but need your guidance.

  3. weinand commented on Jan 27, 2021

    @weinand
    Author

    Martin Aeschlimann (@aeschli) yes, that was my setup

  4. sandy081 commented on Jan 27, 2021

    @sandy081
    Member

    Martin Aeschlimann (@aeschli) It means all extension CLI management features shall be made multi server (local and remote) aware. Looking at other issues, I felt it would be simple and consistent if remote CLI only manages remote server extensions just like local CLI handles only local extensions. It means:

    • list-extensions - lists extensions only from remote
    • install-extension - installs extension only on remote
    • uninstall-extension - uninstalls extension only on remote

    It might be too smart to understand if remote cli manages extensions on both sides. I also think constraining remote cli only to remote will also be consistent when user does above operations opening bash (say from WSL or SSH machine) using server cli.

  5. added
    bug
    on Jan 29, 2021
  6. TylerLeonhardt commented on Jan 29, 2021

    @TylerLeonhardt
    Member

    Worked in Remote - SSH:

    PS C:\Users\tyleonha> code-insiders --force --install-extension [email protected]
    Installing extensions on SSH: TYLEONHA-DESK1...
    Updating the extension 'ms-azuretools.vscode-docker' to the version 1.9.0
    Installing extension 'ms-azuretools.vscode-docker' v1.9.0...
    Extension 'ms-azuretools.vscode-docker' v1.9.0 was successfully installed.
    
    PS C:\Users\tyleonha> code-insiders --force --install-extension ms-azuretools.vscode-docker
    Installing extensions on SSH: TYLEONHA-DESK1...
    Updating the extension 'ms-azuretools.vscode-docker' to the version 1.9.1
    Installing extension 'ms-azuretools.vscode-docker' v1.9.1...
    Extension 'ms-azuretools.vscode-docker' v1.9.1 was successfully installed.
    PS C:\Users\tyleonha>
    
  7. added
    verified
    on Jan 29, 2021
  8. locked and limited conversation to collaborators on Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcliverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions