Skip to content

code-server --install-extension ms-python.python@<version> always installs the latest version #2626

Closed

Description

@ddurham2
  • Web Browser: None
  • Local OS: n/a
  • Remote OS: within docker container
  • Remote Architecture: (from docker) Linux 1b4f61ce602c 5.4.0-60-generic Crash on Debian 8 #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 x86_64 GNU/Linux
  • code-server --version: "3.8.0 c4610f7" and "3.7.2 a0db672"

This is not a problem with 3.7.1

When running ...

$ code-server --install-extension ms-python.python@2020.5.86806
Installing extensions...
Installing extension 'ms-python.python' v2021.1.502429796...
Extension 'ms-python.python' v2021.1.502429796 was successfully installed.

Notice that it installed a version different than what was requested. It seems to always install the latest, no matter what valid version I request.

Also, this happens... (just putting a different valid version now)

1b4f61ce602c:~$ code-server --install-extension ms-python.python@2020.12.424452561
Installing extensions...
Extension 'ms-python.python@2020.12.424452561' is already installed.

... which it isn't. See...

1b4f61ce602c:~$ code-server --list-extensions --show-versions
ms-python.python@2021.1.502429796
ms-toolsai.jupyter@2020.12.1

Please let me know if this is an upstream problem I need to file, and where.

Thanks!

Activity

  1. jsjoeio commented on Feb 2, 2021

    @jsjoeio
    Contributor

    Sorry for the late reply @ddurham2 - thanks for the detailed issue! I've added this to our Triage bucket and hope we can investigate soon!

    A possible workaround - you should be able to install a specific version of an extension using the VSIX file directly and the "Install from VSIX" in the Extension Menu.

    image

  2. ddurham2 commented on Mar 14, 2021

    @ddurham2
    Author

    @jsjoeio Thanks for the info. I do hope this gets fixed soon as my other work arounds are starting to fail.

    As for installing the vsxi manually, is there a way to do that from the cli? (I'm in a Dockerfile here) I tried giving code-server --install-extension /path/to/file.vsxi but it saying it can't find the extension. The usage statement says I should be able to give it a vsxi file.

    I'm wondering if installing via vsxi file path broke for the same reason that the '@Version' syntax broke (my original problem)?

    Also, if I were to give it a vsxi file (like ms-python) which requires a dependency (like how ms-python also now depends on jupyter), should installing the vsxi from the cli automatically install dependencies?

  3. tseader commented on Mar 15, 2021

    @tseader

    As for installing the vsxi manually, is there a way to do that from the cli? (I'm in a Dockerfile here) I tried giving code-server --install-extension /path/to/file.vsxi but it saying it can't find the extension. The usage statement says I should be able to give it a vsxi file.

    I'm wondering if installing via vsxi file path broke for the same reason that the '@Version' syntax broke (my original problem)?

    @ddurham2 - This is what I'm doing to install via vsix file, hope it helps!

    RUN curl -# -L -o /tmp/ms-python-release.vsix "https://github.com/microsoft/vscode-python/releases/download/2020.5.86806/ms-python-release.vsix" && \
        code-server --version && \ 
        # Below line doesn't work due to a bug that always installs latest version... working around this with vsix file install
        #code-server --install-extension ms-python.python@2020.5.86806 && \
        code-server --install-extension /tmp/ms-python-release.vsix && \
        code-server --list-extensions --show-versions
    
    # Add pre-defined user settings for convenience
    COPY user_settings.yaml /home/coder/.local/share/code-server/User/settings.json
  4. added this to the v3.9.3 milestone on Mar 15, 2021
  5. modified the milestones: v3.9.3, On Deck on Apr 8, 2021
  6. mateuszkitlas commented on May 25, 2021

    @mateuszkitlas

    I tried to workaround this with installing a manually downloaded version of this extension (or any other - this issue seems to affect all extensions) from this address:

    url = f'https://extensions.coder.com/api/publishers/{ext.publisher}/vsextensions/{ext.name}/{ext.version}/vspackage'
    

    but sadly, I get the newest version as well. This is kinda important for me to be able to download the right extensions version. Are there any updates on this issue?

  7. jsjoeio commented on May 25, 2021

    @jsjoeio
    Contributor

    @mateuszkitlas have you tried manually installing it from Open VSX? See docs.

  8. modified the milestones: On Deck, 3.11.0 on May 25, 2021
  9. modified the milestones: 3.11.0, 3.12.0 on Jul 19, 2021
  10. modified the milestones: 3.12.0, On Deck on Aug 11, 2021
  11. stale commented on Feb 7, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions