microsoft / inshellisense

IDE style command line auto complete
MIT License
8.38k stars 187 forks source link

Git bash for windows throws an Ink exception #58

Closed B4T3S closed 10 months ago

B4T3S commented 10 months ago

Describe the bug Running is -s bash in a git bash for windows terminal, throws the exception

 ERROR Raw mode is not supported on the current process.stdin, which Ink uses
       as input stream by default.
       Read about how to prevent this error on
       https://github.com/vadimdemedes/ink/#israwmodesupported

To Reproduce Steps to reproduce the behavior:

  1. Start a git bash terminal
  2. Run is -s bash
  3. See error

Expected behavior Inshellisense launches as expected.

Environment

cpendery commented 10 months ago

Are you using git bash standalone? You'll need to enable raw mode in cygwin/mintty to use inshellisense. Different terminal emulators like xterm.js in VSC will already have it enabled.

cpendery commented 10 months ago

Follow this guide and set your git bash config at /etc/git-bash.config to set MSYS=enable_pcon. I was able to replicate your issue, and this resolved it.