question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: code-server command isn't working in remote cli

See original GitHub issue

Is 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

  1. open code-server with systemctl/nginx and connect with https protocol
  2. type command code-server [-args] (e.g. code-server --version) in remote cli (non-login bash in code-server)
  3. 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:closed
  • Created a year ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fritterhoffcommented, Jul 20, 2022
0reactions
code-ashercommented, Jul 20, 2022

Closing as a duplicate. Thank you for the report!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found