Skip to content

Extension host terminates when pythonPath is invalid #1487

@DonJayamanne

Description

@DonJayamanne
  • Set an invalid pythonPath in settings.json
  • Python extension does not load, instead we get an error Extension host terminated
  • Error message displayed indicates the extension host terminates with the error SIGPIPE signal.

Unfortunately I'm no longer able to replicate this.

Note: When a SIGPIPE event is received, the process terminates.

Cause:

  • Jedi process does not load (as pythonPath is invalid)
  • When attempting to write into stdin, the host process crashes:
    this.proc.stdin.write(`${JSON.stringify(payload)}\n`);

Two solutions

  • Add handler for SIGPIPE signal, log the errors
  • Ensure we do not instantiate jedi process if pythonPath is invalid

Unfortunately this isn't the cause fo #342, as this is a Mac issue.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions