Skip to content

[Bug]: code-server not installing VSIX extensions #5146

@ghost

Description

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 09bc300 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-investigationThis issue needs to be further investigated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions