Skip to content

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

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

Closed
4 tasks done
snublueberry opened this issue Jul 3, 2022 · 5 comments
Closed
4 tasks done

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

snublueberry opened this issue Jul 3, 2022 · 5 comments

Comments

@snublueberry
Copy link

snublueberry commented Jul 3, 2022

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

@snublueberry snublueberry added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Jul 3, 2022
@armandobs14
Copy link

In my case I used alias code='sudo code-server' as workaround

@snublueberry
Copy link
Author

snublueberry commented Jul 7, 2022

@armandobs14 It works to me too, thanks. By the way I'm wondering that why it doesn't work without using root permission, cause it normally works when the version of code-server was 4.4.0.

(edited)
which code-server

/usr/lib/code-server/lib/vscode/bin/remote-cli/code-server

sudo which code-server

/usr/bin/code-server

@jsjoeio
Copy link
Contributor

jsjoeio commented Jul 18, 2022

@code-asher any ideas on this one? I'm not sure what would have changed in 4.5.0 that would have caused this.

@fritterhoff
Copy link
Contributor

Same problem as here: #5335

@code-asher
Copy link
Member

Closing as a duplicate. Thank you for the report!

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2022
@code-asher code-asher added duplicate and removed bug Something isn't working triage This issue needs to be triaged by a maintainer labels Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants