Skip to content

Error spawning child process ENOENT #485

@mdeabreu

Description

@mdeabreu
  • code-server version: 1.621
  • OS Version: Docker 18.09.04 build d14af54266 on Digital Ocean Ubuntu 18.04 1Gb ram

Description

After installing the Rust (rls) extension and opening a rust source file the rustup process fails to spawn as a child process. I believe this can occur in other cases when trying to spawn a child process but this is the easiest one to reproduce.

[Error - 15:49:11] Starting client failed
Error: spawn rustup ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
	at onErrorNT (internal/child_process.js:362:16)
	at _combinedTickCallback (internal/process/next_tick.js:139:11)
	at process._tickCallback (internal/process/next_tick.js:181:9)

Steps to Reproduce

  1. Launch code-server inside Docker using the following command (same as in the readme): docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server:1.621 --allow-http --no-auth.
  2. Search for "rust" in the Extensions pane, and install the Rust (rls) extension.
  3. Create a new file in your project titled hello.rs.
  4. Open the newly created rust source file.
  5. You will see error notifications and when looking at the Output window you will be able to see the error message.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwaiting-for-infoWaiting for more information from submitter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions