-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remote Extension Host: "The requested module 'node:module' does not provide an export named 'register'" on Linux #2049
Comments
REH on linux is still using node-16 (for compatibility) which don't have the |
Remote terminals don't work any longer (using xaberus/remote-oss) after the described workaround, stating that the corresponding module was compiled against a different Node version. |
I've added a known issue on release page of that version. |
The fix has been merged and new release is going out. I reopen the issue to you can validate if the issue is fixed on your end with the new version. |
Thank you for your work, including this fast reply and fix! I cleaned the bin folder on the server, reconnected on the new version, and everything works as expected, using the bundled node v16:) |
Describe the bug
When attempting to connect to a remote host, I get
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
.This happened specifically using open-remote-ssh, which uses VSCodium's REH build. When manually downloading and attempting to execute
bin/codium_server
on the server, I get the error"The requested module 'node:module' does not provide an export named 'register'"
.This only happens on the latest release build (1.94.0.24281), not the previous one. The Windows version of REH also works just fine.
IMPORTANT (for those reading who just want to use remote): A quick and simple workaround is as follows:
pkill -f ~/.vscodium-server/bin/*/node
as the ssh user, orpkill -f .vscodium-server/bin/*/node
as any user)~/.vscodium-server/bin/<commit>/node
on the server with a newer version of the node binary, v18.20.4 works. Once again,~
here means the home directory of the user you're using to connect with SSH.Please confirm that this problem is VSCodium-specific
Please confirm that the issue/resolution isn't already documented
To Reproduce
Steps to reproduce the behavior:
Download and extract
vscodium-reh-linux-x64-1.94.0.24281.tar.gz
on a Linux machine, and runbin/codium_server
Expected behavior
Remote host starts up and I'm able to connect without problems.
Logs
Server output:
Install script:
Server install command stdout:
Server:
The text was updated successfully, but these errors were encountered: