You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pierce@k1:~$ /usr/bin/code-server
/usr/lib/code-server/lib/node: error while loading shared libraries: libnode.so.115: cannot open shared object file: No such file or directory
pierce@k1:~$
@archanox The Linux/RISC-V releases of code-server have been rebuilt and uploaded (same links). Please try again.
Please test whether extensions can be installed successfully. Because yarn test:integration returned the following error:
yarn run v1.22.22
$ ./ci/dev/test-integration.sh
Set CODE_SERVER_PATH to test another build of code-server
Running tests with code-server binary: 'release-standalone/bin/code-server'
Determining test suites to run...ts-jest[versions] (WARN) Version 5.5.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.8.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
ts-jest[versions] (WARN) Version 5.5.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.8.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
ts-jest[versions] (WARN) Version 5.5.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.8.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
PASS test/integration/help.test.ts (28.905 s)
FAIL test/integration/installExtension.test.ts (31.624 s)
● --install-extension › should use EXTENSIONS_GALLERY when set
thrown: "Exceeded timeout of 5000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
12 | setupFlags = ["--extensions-dir", tempDir]
13 | })
> 14 | it("should use EXTENSIONS_GALLERY when set", async () => {
| ^
15 | const extName = "author.extension"
16 | await expect(
17 | runCodeServerCommand([...setupFlags, "--install-extension", extName], {
at test/integration/installExtension.test.ts:14:3
at Object.<anonymous> (test/integration/installExtension.test.ts:4:1)
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 1 passed, 2 total
Snapshots: 0 total
Time: 38.05 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Activity
benz0li commentedon Aug 19, 2024
Cross references:
Please upvote microsoft/vscode#206766 to add RISC-V support for
Code - OSS.benz0li commentedon Aug 19, 2024
@sakthivel-axim Could you test one of the following release files:
THE LINUX/RISCV64 RELEASE FILES ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.@code-server There will be follow-up posts on how these release files were created.
benz0li commentedon Aug 20, 2024
On a RISC-V machine1 that runs Debian unstable (sid) and has Docker installed:
Host
Dockerfile:
Build image:
docker build -t code-server-builder .Run container:
Container
Clone
code-server:git clone https://github.com/coder/code-server.git cd code-serverClone
vscodesubmodule:Apply patches
playwright/chromium is not (yet) available for Linux/RISC-V. And since electron [therefore] also lacks RISC-V support, https://github.com/microsoft/vscode/blob/26a90463972295bcb960b7487a7c69afa06626eb/build/azure-pipelines/oss/product-build-pr-cache-linux.yml#L62-L63 is required:
Install dependencies:
--- Build steps
Export version:
export VERSION=0.0.0Build code-server:
ℹ️
yarn build:vscodetook several hours. The time will be measured more accurately next time.Footnotes
In my case: https://github.com/utmapp/mac.getutm.app/issues/31 (QEMU v7.2 RV64 on
AArch64; extended to 8 cores, 16 GB RAM, 64 GB disk) ↩benz0li commentedon Aug 20, 2024
--- Release steps
Export version:
export VERSION=0.0.0Build code-server:
Modify version:
npm version --prefix release "$VERSION"Build release packages:
benz0li commentedon Aug 20, 2024
ℹ️ Without
command
yarnexits withError: ERROR: Playwright does not support chromium on <unknown>.Container logs
benz0li commentedon Aug 20, 2024
❗ This is a proof of concept (PoC). If Node.js for Debian unstable (sid) is updated to v22, this may no longer work.
The situation will become (more) stable once Debian 13 (aka trixie) is released – in summer 2025.
Footnotes
Unofficial RISC-V binaries available at https://unofficial-builds.nodejs.org ↩
benz0li commentedon Aug 20, 2024
@sakthivel-axim @karthick-govindaraj @archanox Could any of you confirm that the Linux/RISC-V releases of
code-servermentioned in #6951 (comment) actually work?Thank you.
archanox commentedon Aug 20, 2024
@benz0li I tried the linked deb install above, and setup the service, but it didn't come up.
I'm not sure if I'm missing a step or a dependency.
benz0li commentedon Aug 20, 2024
@archanox What happens if you simply execute
/usr/bin/code-server?archanox commentedon Aug 20, 2024
benz0li commentedon Aug 20, 2024
@archanox Thank you for the feedback.
On a AArch64 machine,
ldd /opt/code-server/lib/nodereturnsOn a RISC-V machine,
ldd /opt/code-server/lib/nodereturnsI will start a build1 with an unofficial Linux/RISC-V Node.js binary from https://unofficial-builds.nodejs.org/.
Maybe that produces a different result.
Time measurements:
yarn: 44 minutes 31 secondsyarn build:vscode: 6 hours 30 minutes 8 secondsFootnotes
Docker v27.1.2 on
x86_64with emulators installed ↩benz0li commentedon Aug 20, 2024
On a non-'RISC-V' machine:
Dockerfile (using an unofficial Linux/RISC-V Node.js binary):
Install emulator:
# Docker CE docker run --privileged --rm tonistiigi/binfmt:master --install riscv64# Docker Desktop docker run --privileged --rm tonistiigi/binfmt:desktop-master --install riscv64Build image:
docker build --platform linux/riscv64 -t code-server-builder .Run container:
benz0li commentedon Aug 21, 2024
@archanox The Linux/RISC-V releases of
code-serverhave been rebuilt and uploaded (same links). Please try again.Please test whether extensions can be installed successfully. Because
yarn test:integrationreturned the following error:benz0li commentedon Aug 21, 2024
Runtime requirement: libatomic1 (
debian:sidimage)ldd /opt/code-server/lib/node1 returnsnow.
Footnotes
Using QEMU v7.2 RV64 on
AArch64because Docker v27.1.2 onx86_64with emulators installedexits with unknown exit code (139). ↩5 remaining items
karthick-govindaraj commentedon Sep 3, 2024
@benz0li

karthick-govindaraj commentedon Sep 3, 2024
can you share the latest build will check and update you.!
benz0li commentedon Sep 3, 2024
Same URLs:
benz0li commentedon Sep 3, 2024
@karthick-govindaraj On your Debian machine, what does
return?
P.S.: If
strings: command not found, thenapt-get update && apt-get install binutilsP.P.S.: If
strings: '/lib/*-linux-gnu/libstdc++.so.6': No such file, thenapt-get update && apt-get install libstdc++6karthick-govindaraj commentedon Sep 3, 2024
@benz0li
karthick-govindaraj commentedon Sep 3, 2024
hi @benz0li
I am exploring Code Server and noticed that the debugger option is missing. Did you miss anything while building Code Server?
benz0li commentedon Sep 3, 2024
Nothing that I am aware of.
karthick-govindaraj commentedon Sep 3, 2024
I have installed Code Server on a Linux machine, and the UI of the debugger tab looks similar to VS Code.
After installing the debugger extension, we can set breakpoints and debug the program, as shown in the image below.
In your build, I haven't seen any way to access debugging.
benz0li commentedon Sep 3, 2024
I cannot confirm that:
(Installed using
code-server-4.92.2-linux-riscv64.tar.gz1)Q.E.F.
Footnotes
The DEB and RPM packages should also work. Everything is built the same way as for the other architectures. ↩
karthick-govindaraj commentedon Sep 4, 2024
@benz0li
in code-server-4.92.2-linux-riscv64.tar.gz debug option working thanks.!
benz0li commentedon Sep 4, 2024
@karthick-govindaraj Thank you for testing!
ℹ️ Please be aware that not all extensions [that rely on Linux binaries] will work on Linux/RISC-V.
benz0li commentedon Sep 7, 2024
@karthick-govindaraj @archanox Unofficial and untested builds are now published at https://gitlab.b-data.ch/coder/code-server/-/releases.
ℹ️ Available for Linux/RISC-V and Linux/PowerPC64le. A build for Linux/s390x was unsuccessful.
FYI @code-asher
[-]Add RISC-V support[/-][+]Add RISC-V (64-bit) support[/+]benz0li commentedon Apr 13, 2025
An unofficial and untested build for Linux/s390x was successfully for
code-serverv4.99.2: https://gitlab.b-data.ch/coder/code-server/-/jobs/165259Required patch:
Patch based on:
Cross reference:
FYI @code-asher