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

Attempts to spawn powershell in Ubuntu bash #28

Closed
prescience-data opened this issue Nov 7, 2023 · 4 comments · Fixed by #29
Closed

Attempts to spawn powershell in Ubuntu bash #28

prescience-data opened this issue Nov 7, 2023 · 4 comments · Fixed by #29
Assignees
Labels
bug Something isn't working
Milestone

Comments

@prescience-data
Copy link

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

  • OS:Ubuntu 22.04
  • Output of inshellisense --version: n/a
  • Nodejs Version: v18.18.1

Additional context
image

@prescience-data prescience-data added the bug Something isn't working label Nov 7, 2023
@agluszak
Copy link

agluszak commented Nov 7, 2023

Same output for fish on ubuntu

@mhb8898
Copy link

mhb8898 commented Nov 7, 2023

same on mac os x

@agluszak
Copy link

agluszak commented Nov 8, 2023

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
Copy link
Member

cpendery commented Nov 8, 2023

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

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

Successfully merging a pull request may close this issue.

4 participants