-
Notifications
You must be signed in to change notification settings - Fork 5.9k
code-server downloads aarch64 version of C/C++ extension (cpptools) on amd64 machine #2120
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
Same here. Currently causing us a bit of a headache. |
This is a big problem for us as well - we use code-server in Jupyterhub for our undergrad classes. We're using the work around (directly load the extension) but it requires each student to run a script. |
same issue ubuntu server 20.04.1 CPU 1005 after extension installation start |
This is still an issue in release 3.7.2
and looking at the file
I'm not familiar enough with the code-server code base to start digging into why this might be happening to avoid the problem in the future. According to the log file from @peat-psuwit this appears to be trying to download an x64 binary. Is the package perhaps just improperly labeled in storage.googleapis.com?
|
Yup, it looks like our marketplace is just uploading the first .vsix it finds in their GitHub releases which is the linux-aarch64 one. They don't seem to distribute the "online" version there, so the ideal situation would be to have them add it to the GitHub releases so we can make use of it. Otherwise we'll need to build it ourselves. Either that or modify our marketplace to support multiple versions of an extension then patch the extension gallery code in VS Code to download the right one based on the operating system. |
Any plan to fix this issue? Like separate the repository for different arch? If we have a x86_64 linux server, it will try to download file name contains Instead of just download the first vsix from github releases. |
At the moment our plan is to switch to Open VSX which will deprecate our
marketplace.
|
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. |
Ok. The thing is, the cpptools extension's EULA actually prohibits the use with non-MS version of VSCode. Also, since code-server now uses Open-VSX registry, I'm not sure if this problem is still relevant or not. Maybe Open-VSX have a similar problem? P.S. if someone want a C/C++ extension that is legal to use on code-server, I recommend clangd's VSCode extension. With properly configured |
Excellent point, I think at least as far as code-server is concerned this issue has reached the end of its life. It seems unlikely anything can be done about this as long as the restrictive license is in play but the clangd extension seems like the perfect alternative! Thanks for linking to that. |
code-server --version
:3.5.0 de41646fc402b968ca6d555fdf2da7de9554d28a
Step to reproduce:
~/.local/share/code-server/{CachedExtensionVSIXs,extensions}
is removed.The language server crashed 5 times in the last 3 minutes. It will not be restarted.
The C/C++ extension failed to install successfully. You will need to repair or reinstall the extension for C/C++ language features to function properly.
Attempt to Repair
will reload the window, and the extension seems to download binaries forx86_64
, but after that the first error still appears.Both after step 3. and step 4, the binary from both the extracted directory and the VSIX itself shows that the binary is AArch64 instead of AMD64 (I don't know where the extension downloads binaries to):
The remoteagent.log is obtained at step 2, before reloading (the log level is set to
trace
). I manually download the extension using URL in the log (starts withhttps://storage.googleapis.com/vscode-extension-assets
), and it contains arm64 binaries. Interestingly, I don't see any architecture parameter in the query.Workaround: manually download the extension from extension's GitHub release page seems to work correctly. Notice that they're
I suspect that the store is supposed to distribute "online" .vsix that works on all architecture?
The text was updated successfully, but these errors were encountered: