[Bug]: code-server command isn't working in remote cli
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome 102.0
- Local OS: raspberrypi os 64bit (aarch64)
- Remote OS: One UI 4.1 (Android 12.0)
code-server --version
: 4.5.0 (updated from 4.4.0)
Steps to Reproduce
- open code-server with systemctl/nginx and connect with https protocol
- type command code-server [-args] (e.g. code-server --version) in remote cli (non-login bash in code-server)
- type command code-server [-args] in remote cli (login bash in ssh remote application)
Expected
Typed command code-server --version
in ssh remote connection,
4.5.0 02b9d7ee856e31d9008d1ff24a175ff03b49010e with Code 1.68.1
Actual
But typed command code-server --version
in code-server remote cli,
/usr/lib/code-server/lib/vscode/bin/remote-cli/code-server: 12: /usr/lib/code-server/lib/vscode/node: not found
When I added symbolic link in that path as following,
sudo ln -s /usr/lib/code-server/lib/node /usr/lib/code-server/lib/vscode/node
,
It works in some way (result following) but I think it’s just not a good solution.
code-server --version
(edited)
1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
arm64
And it doesn’t print errors when parameters are entered incorrectly. Instead, parameters are ignored and executed program only. In ex, when I used command code-server --versiom
(m is incorrect), it took just code-server
and executed it.
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
- I cannot reproduce this in VS Code.
- I cannot reproduce this in GitHub Codespaces.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[Bug]: Cannot invoke `code-server` from integrated terminal ...
In code-server v4.1.0 /opt/code-server/vendor/modules/code-oss-dev/bin is prepended to PATH ; the said path only containing helpers/{browser.cmd ...
Read more >The "code" command does not work when connecting to a ...
I use this for a temporary solution to call code on a terminal inside the docker container.
Read more >Remote Development Tips and Tricks - Visual Studio Code
One command helpful to troubleshoot a variety of Remote-SSH issues is Remote-SSH: Kill VS Code Server on Host. This will remove the server,...
Read more >What Do I Do If Error Message "The VS Code Server failed to ...
Open the command panel (Ctrl+Shift+P for Windows and Cmd+Shift+P for Mac), search for Kill VS Code Server on Host, and locate the affected ......
Read more >General Remote Desktop connection troubleshooting
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem as here: https://github.com/coder/code-server/issues/5335
Closing as a duplicate. Thank you for the report!