microsoft / inshellisense

IDE style command line auto complete
MIT License
8.24k stars 181 forks source link

Attempts to spawn powershell in Ubuntu bash #28

Closed prescience-data closed 8 months ago

prescience-data commented 8 months ago

Describe the bug Crashes on fresh install on Ubuntu when using bash.

To Reproduce Steps to reproduce the behavior:

  1. volta install @microsoft/inshellisense
  2. inshellisense bind
  3. node:internal/errors:496 -> Error: spawn powershell ENOENT

Expected behavior I assume it should call the bash version?

Environment

Additional context image

agluszak commented 8 months ago

Same output for fish on ubuntu

mhb8898 commented 8 months ago

same on mac os x

agluszak commented 8 months ago

the new update hasn't fixed it @cpendery :(

andrzej@MUNIT-521 ~> inshellisense bind
Select your desired shell for keybinding creation
Loading...
node:internal/errors:497
    ErrorCaptureStackTrace(err);
    ^

Error: spawn powershell 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: -2,
  code: 'ENOENT',
  syscall: 'spawn powershell',
  path: 'powershell',
  spawnargs: [ '-c', 'echo $profile' ],
  cmd: 'echo $profile',
  stdout: '',
  stderr: ''
}

Node.js v20.8.1
andrzej@MUNIT-521 ~ [1]> inshellisense --version
0.0.1-rc.2
cpendery commented 8 months ago

the new update hasn't fixed it @cpendery :(

andrzej@MUNIT-521 ~> inshellisense bind
Select your desired shell for keybinding creation
Loading...
node:internal/errors:497
    ErrorCaptureStackTrace(err);
    ^

Error: spawn powershell 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: -2,
  code: 'ENOENT',
  syscall: 'spawn powershell',
  path: 'powershell',
  spawnargs: [ '-c', 'echo $profile' ],
  cmd: 'echo $profile',
  stdout: '',
  stderr: ''
}

Node.js v20.8.1
andrzej@MUNIT-521 ~ [1]> inshellisense --version
0.0.1-rc.2

@agluszak it'll be fixed in 0.0.1-rc.3 which hasn't been released yet