-
Notifications
You must be signed in to change notification settings - Fork 5.9k
code-server --install-extension ms-python.python@<version> always installs the latest version #2626
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
Comments
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. |
@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? |
@ddurham2 - This is what I'm doing to install via 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 [email protected] && \
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 |
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:
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? |
@mateuszkitlas have you tried manually installing it from Open VSX? See docs. |
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. |
code-server --version
: "3.8.0 c4610f7" and "3.7.2 a0db672"This is not a problem with 3.7.1
When running ...
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)
... which it isn't. See...
Please let me know if this is an upstream problem I need to file, and where.
Thanks!
The text was updated successfully, but these errors were encountered: