-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: code-server version not respected when installing extensions using CLI #5031
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
Most probably related to eclipse/openvsx#436. |
Further references: |
Oh wow, nice find! Subscribing to the eclipse issue you opened. |
For the time being, it is best to pin the version of this extension, e.g. Not an issue of code-server. |
It seems to be an issue of code-server. Executing code-server --install-extension ms-toolsai.jupyter results in
But v2022.3.1000901801 of ms-toolsai.jupyter is neither compatible with code-server 4.2.0 (Code 1.64.2) nor code-server 4.3.0 (Code 1.65.2): curl https://open-vsx.org/api/-/query -H 'accept: application/json' -H 'content-type: application/json' -d '{"extensionId":"ms-toolsai.jupyter","extensionVersion":"2022.3.1000901801"}' | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2510 0 2435 100 75 1464 45 0:00:01 0:00:01 --:--:-- 1511 {
"extensions": [
{
"namespaceUrl": "https://open-vsx.org/api/ms-toolsai",
"reviewsUrl": "https://open-vsx.org/api/ms-toolsai/jupyter/reviews",
"files": {
"download": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/ms-toolsai.jupyter-2022.3.1000901801.vsix",
"manifest": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/package.json",
"readme": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/README.md",
"changelog": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/CHANGELOG.md",
"license": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/LICENSE.txt",
"icon": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801/file/icon.png"
},
"name": "jupyter",
"namespace": "ms-toolsai",
"version": "2022.3.1000901801",
"publishedBy": {
"loginName": "open-vsx",
"fullName": "Open VSX",
"avatarUrl": "https://avatars0.githubusercontent.com/u/61870837?v=4",
"homepage": "https://github.com/open-vsx",
"provider": "github"
},
"verified": false,
"unrelatedPublisher": true,
"namespaceAccess": "restricted",
"allVersions": {
"latest": "https://open-vsx.org/api/ms-toolsai/jupyter/latest",
"2022.3.1000901801": "https://open-vsx.org/api/ms-toolsai/jupyter/2022.3.1000901801"
},
"averageRating": 5,
"downloadCount": 140513,
"reviewCount": 1,
"versionAlias": [
"latest"
],
"timestamp": "2022-03-29T20:55:43.309137Z",
"preview": false,
"displayName": "Jupyter",
"description": "Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more.",
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Programming Languages",
"Other",
"Extension Packs",
"Data Science",
"Machine Learning",
"Notebooks",
"Visualization"
],
"extensionKind": [
"workspace"
],
"tags": [
"__ext_jl",
"debuggers",
"ipynb",
"julia",
"jupyter",
"keybindings",
"multi-root ready",
"notebook",
"notebookKernelJupyterNotebook",
"python",
"raw"
],
"license": "MIT",
"homepage": "https://github.com/Microsoft/vscode-jupyter",
"repository": "https://github.com/Microsoft/vscode-jupyter.git",
"bugs": "https://github.com/Microsoft/vscode-jupyter/issues",
"galleryColor": "#ffffff",
"galleryTheme": "light",
"qna": "https://github.com/microsoft/vscode-jupyter/discussions",
"dependencies": [],
"bundledExtensions": [
{
"url": "https://open-vsx.org/api/ms-toolsai/jupyter-keymap",
"namespace": "ms-toolsai",
"extension": "jupyter-keymap"
},
{
"url": "https://open-vsx.org/api/ms-toolsai/jupyter-renderers",
"namespace": "ms-toolsai",
"extension": "jupyter-renderers"
}
]
}
]
} 👉 v2022.3.1000901801 of ms-toolsai.jupyter is only compatible with Code 1.66.0 and later. |
FYI @fritterhoff |
@benz0li thank you for the detailed notes/logs! So the extension installs even when it shouldn't. Does it show up in the Extensions panel and does it work? |
Please add this issue to the May 2022 milestone. |
[code-server v4.4.0] Installation using the extension panel: Although showing incompatible versions for Python (2022.6.0) and Jupyter (2022.5.1001290443), the latest compatible versions are installed: Screen-Recording_2022-05-08.mp4Screen-Recording_2022-05-08_log.txt ℹ️ This behaviour is also true for code-server v4.3.0; I was just too lazy to follow through in #5031 (comment)... The issue when using |
Ahh...just re-read the issue. So when installing extensions via the CLI, it doesn't check if code-server (i.e. Code) is compatible in terms of version. Seems like we could probably reproduce this with a test 🤔 i.e. here is where we do "integration" tests: https://github.com/coder/code-server/blob/main/ci/build/test-standalone-release.sh#L17 We might be able to add another one there. |
@jsjoeio Can I help in any way? |
That would be awesome! I don't know which part you're interested in, but here's how I was thinking of approaching it:
|
If considered an issue, this is upstream (microsoft/vscode). On a Machine (arch: docker run --rm -ti debian:bullseye Within the container: apt update \
&& apt install -y --no-install-recommends \
ca-certificates \
gnupg \
libasound2 \
libgbm1 \
libgtk-3-0 \
libnss3 \
libsecret-1-0 \
libxkbfile1 \
libxshmfence1 \
libxss1 \
wget \
&& wget https://update.code.visualstudio.com/1.65.2/linux-deb-x64/stable \
-O code_1.65.2-1646927742_amd64.deb \
&& dpkg -i code_1.65.2-1646927742_amd64.deb useradd -ms /bin/bash coder \
&& su - coder Executing code --install-extension ms-toolsai.jupyter results in Installing extensions...
Installing extension 'ms-toolsai.jupyter'...
(node:4414) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `code --trace-deprecation ...` to show where the warning was created)
Extension 'ms-toolsai.jupyter' v2022.5.1001601848 was successfully installed. 👉 v2022.5.1001601848 of ms-toolsai.jupyter is not compatible with Code 1.65.2. |
I'm going to check at https://github.com/microsoft/vscode/issues if someone already filed an issue. |
Nice find! So it does sound like it's upstream. Let us know what you find! Otherwise, we may be able to patch it on our side. At least, we'll have an easy way to run integration tests once #5275 is merged. |
Cross reference: microsoft/vscode#153201 |
There was some back and forth at microsoft/vscode#153201 but microsoft/vscode#153201 (comment) will lead to an answer for sure. |
Woohoo! I just subscribed to that issue. |
Neither code-server nor VS Code do install incompatible extension versions. It is a printing issue in the CLI, though: microsoft/vscode#153201 (comment) |
I have just rebuilt an image containing code-server v4.5.1: code-server --install-extension ms-python.python installs the latest compatible [release] versions:
I can not reproduce #5031 (comment) with code-server v4.5.1. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.2.0 693b1fa with Code 1.64.2Steps to Reproduce
Expected
2022.2.1010641114
Actual
2022.3.1000901801
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: