Skip to content
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

Possible regression - spawn pwsh ENOENT #312

Closed
LunarN0v4 opened this issue Jan 2, 2025 · 6 comments
Closed

Possible regression - spawn pwsh ENOENT #312

LunarN0v4 opened this issue Jan 2, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@LunarN0v4
Copy link

❯ is doctor
node:internal/child_process:285
      const err = new ErrnoException(exitCode, syscall);
                  ^

Error: spawn pwsh ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn pwsh',
  path: 'pwsh',
  spawnargs: [ '-c', 'echo $profile' ],
  cmd: 'echo $profile',
  stdout: '',
  stderr: ''
}

To Reproduce

  1. Install inshellisense
  2. Run is doctor
  3. Error occurs

Expected behavior
I expected the command to execute and complete without an error.

Environment

  • OS: Arch Linux
  • Output of is --version: 0.0.1-rc.19
  • Nodejs Version: v22.10.0
  • Shell: zsh
  • Shell Version: 5.9 (x86_64-pc-linux-gnu)
@LunarN0v4 LunarN0v4 added the bug Something isn't working label Jan 2, 2025
@LunarN0v4
Copy link
Author

Possible regression of #68?

@hramniou-eurofunk
Copy link

The same issue happens on Windows 10, pwsh 7.4.6, Node.js v22.12.0

@ryanjwessel
Copy link

I observed the same error when installing on Node 22.5.1, and if I downgraded it back to 20.16.0.

@jonaskohl
Copy link

Same issue with Node v20.18.1 on macOS 15.2

@teejay-87
Copy link

Having the same issue on Windows 11, both in Powershell 7 and Git Bash

node:internal/child_process:286
      const err = new ErrnoException(exitCode, syscall);
                  ^

Error: spawn nu ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn nu',
  path: 'nu',
  spawnargs: [ '-c', 'echo $nu.env-path' ],
  cmd: 'echo $nu.env-path',
  stdout: '',
  stderr: ''
}

Node.js v20.16.0

Also, no auto-completion seems to work

@hahtse
Copy link

hahtse commented Jan 3, 2025

Windows 11, Powershell 5.1 and also Powershell 7.4.6

node:internal/child_process:285
      const err = new ErrnoException(exitCode, syscall);
                  ^

Error: spawn pwsh ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pwsh',
  path: 'pwsh',
  spawnargs: [ '-c', 'echo $profile' ],
  cmd: 'echo $profile',
  stdout: '',
  stderr: ''
}

Node.js v22.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants