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 not installing VSIX extensions

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Android
  • Remote OS: (Same device)
  • Remote Architecture: aarch64
  • Node.JS Version: 16
  • code-server --version: 4.3.0 09bc30027a7fbba170f907a527eaa9f7219fe739 with Code 1.65.2

Steps to Reproduce

  1. Use code-server --install-extension some-ext.vsix

Expected

Have the extension installed

Actual

The code-server gives this output:

~ $ code-server --install-extension /sdcard/Download/vscode-clangd-0.1.16_vsixhub.com.vsix
Installing extensions...
(node:18486) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Unable to delete the existing folder '/data/data/com.termux/files/home/vsext/llvm-vs-code-extensions.vscode-clangd-0.1.16' while installing the extension 'llvm-vs-code-extensions.vscode-clangd'. Please delete the folder manually and try again
Failed Installing Extensions: file:///sdcard/Download/vscode-clangd-0.1.16_vsixhub.com.vsix

Logs

With --verbose:

~ $ code-server --install-extension /sdcard/Download/vscode-clangd-0.1.16_vsixhub.com.vsix --verbose
[2022-05-01T17:48:53.507Z] debug Found VS Code arguments; spawning VS Code CLI
[2022-05-01T17:48:53.512Z] debug Running Code CLI
Installing extensions...
(node:20122) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Unable to delete the existing folder '/data/data/com.termux/files/home/.local/share/code-server/extensions/llvm-vs-code-extensions.vscode-clangd-0.1.16' while installing the extension 'llvm-vs-code-extensions.vscode-clangd'. Please delete the folder manually and try again
Failed Installing Extensions: file:///sdcard/Download/vscode-clangd-0.1.16_vsixhub.com.vsix

Screenshot/Video

No response

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

I installed code-server with this command: FORCE_NODE_VERSION=16 yarn global add code-server --ignore-engines I don’t know if one of these flags or enviroment variables break the code-server

PS: I marked I cannot reproduce this in VS Code because its obrigatory, but i don’t have a computer to test, and no, i don’t used HTTPS.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, May 2, 2022

Hmm…maybe when code-server runs, it’s running as a user without the right permissions? Any ideas @code-asher ?

The code-server process run as the same user that i use $ ps aux:

u0_a301  28881 73.7  2.1 11258292 82292 pts/3  R<l   1970   0:02 node /data/data/com.termux/files/usr/bin/code-server --

$ whoami:

u0_a301
1reaction
ghostcommented, May 2, 2022

Yeah, this is ls -lA on /data/data/com.termux/files/home/.local/share/code-server

~/.../share/code-server $ ls -lA
total 26
drwx------ 2 u0_a301 u0_a301 3488 May  1 23:38 Machine
drwx------ 4 u0_a301 u0_a301 3488 May  1 23:38 User
drwx------ 2 u0_a301 u0_a301 3488 May  1 23:38 coder-logs
-rw------- 1 u0_a301 u0_a301   89 May  1 23:38 coder.json
drwx------ 2 u0_a301 u0_a301 3488 May  1 23:38 extensions
-rw------- 1 u0_a301 u0_a301    0 May  1 23:39 heartbeat
drwx------ 3 u0_a301 u0_a301 3488 May  1 23:38 logs
-rw------- 1 u0_a301 u0_a301   36 May  1 23:38 machineid
Read more comments on GitHub >

github_iconTop Results From Across the Web

Students can't install Extensions in Visual Studio Code
This behaviour cannot be easily reproduced in another active directory domain. Does anyone know anything about this error message? active- ...
Read more >
Find and install extensions - Visual Studio (Windows)
You can disable VSIX extensions but not extensions that were installed using an MSI. MSI-installed extensions can only be uninstalled.
Read more >
How to install C/C++-Extension in VSCode-Server?
-> Click on version history and choose for your linux architecture. Install extension with: code-server --install-extension ms-vscode.cpptools- ...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
The Remote - SSH extension installs and maintains the "VS Code Server". ... fix a wide range of issues and error messages you...
Read more >
FAQ - code-server v4.8.0 docs - Coder
Furthermore, Microsoft prohibits the use of any non-Microsoft VS Code from accessing ... Run code-server --install-extension <path to vsix> in the terminal.
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