Skip to content
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

vscodium not downloaded due to missing value for release #57

Closed
ArjenR opened this issue Jan 16, 2023 · 4 comments
Closed

vscodium not downloaded due to missing value for release #57

ArjenR opened this issue Jan 16, 2023 · 4 comments

Comments

@ArjenR
Copy link

ArjenR commented Jan 16, 2023

Type: Issue

Running Code-OSS on POP!_OS installed from flatpak.
Plugin version v0.0.25

Version: 1.74.3
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Date: 2023-01-13T15:24:47.250Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 6.0.12-76060006-generic
Sandboxed: No

When connecting to a remote host for the 1st time I get the error:

tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Upon investigation I found that the download url that was constructed misses the value for release.
curl --retry 3 --connect-timeout 10 --location --output vscode-server.tar.gz https://github.com/VSCodium/vscodium/releases/download/1.74.3./vscodium-reh-linux-x64-1.74.3..tar.gz

Extension version: 0.0.25
VS Code version: Code - OSS 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-13T15:24:47.250Z)
OS version: Linux x64 6.0.12-76060006-generic
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 7 5800H with Radeon Graphics (16 x 2533)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 13.52GB (3.28GB free)
Process Argv --ms-enable-electron-run-as-node --extensions-dir /home/arjen/.var/app/com.visualstudio.code-oss/data/vscode/extensions --disable-crash-reporter --unity-launch --enable-proposed-api jeanp413.open-remote-ssh
Screen Reader no
VM 0%
DESKTOP_SESSION pop-wayland
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP pop-wayland
XDG_SESSION_TYPE wayland
@ArjenR
Copy link
Author

ArjenR commented Jan 16, 2023

Adding to this while performing the installation steps manually.

The installation script expects the server script to be named code-server-oss but this does not exist. Instead the name is codium-server. There is no symbolic link present.

Creating a symbolic link will make the server start properly but now code-oss reports a failure upon connecting due to e version mismatch..

@jeanp413
Copy link
Owner

jeanp413 commented Jan 16, 2023

The problem is that you are using another client instead of vscodium, and vscodium uses a different commit in product.json (client and server need to have the same commit) but you can use openvscode-server it uses the same commit as code-oss I think

Could you try updating "remote.SSH.serverDownloadUrlTemplate" setting to

https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${version}/openvscode-server-v${version}-${os}-${arch}.tar.gz

Let me know if it works so I can update the readme

@ArjenR
Copy link
Author

ArjenR commented Jan 16, 2023

Ok so the url retrieved the right version, but the server script in bin had the wrong name too. Nothing a ln -s openvscode-server code-server-oss could not fix in the bin/ directory where the server was installed.
~/.vscode-server-oss/bin/97dec172d3256f8ca4bfb2143f3f76b503ca0534/bin in my case.

Thanks for replying. I guess it might be easier to switch to vscodium and see how it works for me :-)

@jeanp413
Copy link
Owner

Ah right 🤦 , I guess I can detect if the server is openvscode-server and rename it in the install script, but yeah switching to vscodium is easier, not sure how popular is Code-OSS but in any case let me know and I can push a commit with the change I mentioned.

Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants