microsoft / inshellisense

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

get error after excute `inshellisense bind` #31

Closed HomyeeKing closed 8 months ago

HomyeeKing commented 8 months ago

Describe the bug A clear and concise description of what the bug is. image

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Environment

Additional context Add any other context about the problem here.

User670 commented 8 months ago

Also having this issue on Windows, where the error message mentions a pwsh. I already uninstalled this so I can't obtain a version number. A friend sent a screenshot of the error, then did scoop shim add pwsh <path to powershell.exe>, then inshellisense bind worked.

(is pwsh a thing for the command line? I get an error saying it's not a thing when I typed it, and it requires me to type powershell instead if I want powershell.)

sktzofrenic commented 8 months ago

I'm having the same issue on Ubuntu

➜  ~ inshellisense bind
Select your desired shell for keybinding creation
Loading...
node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

Error: spawn powershell EACCES
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -13,
  code: 'EACCES',
  syscall: 'spawn powershell',
  path: 'powershell',
  spawnargs: [ '-c', 'echo $profile' ],
  cmd: 'echo $profile',
  stdout: '',
  stderr: ''
}
Achill113 commented 8 months ago

+1

Nisthar commented 8 months ago

also getting the same error

cpendery commented 8 months ago

This was fixed by #29 and will be included in the next pre-release later today. I'll close this once that release it out

cpendery commented 8 months ago

The new version is released and I'm not seeing the issue anymore on Linux