haskell-ide-engine
haskell-ide-engine copied to clipboard
'stty' is not recognized
I keep getting this on my vscode:
'stty' is not recognized as an internal or external command,
operable program or batch file.
hie
itself is not working at all now, but I don't know if it's due to this error or not.
I'm running:
- Win10
-
hie-8.6.5
-
lts-14.11
Looks like I didn't have the correct msys2
folder in my PATH
. Now that I do, I'm getting this kind of error:
stty: 'standard input': Inappropriate ioctl for device
I've got that message too in my windows machines continuously, not only with hie but with other haskell programs. It doesn't block or affect their execution. I think it is caused by some upstream widely used lib.
@jneira yeah I think this is a problem with stack
.
I was able to resolve this somehow with a tip from: https://github.com/commercialhaskell/stack/pull/4968
Basically, I made a stty.bat
with the content:
@IF "%1"=="size" exit 255
Wow, thanks for the link and the workaround. I hope they will merge the pr with the definitive solution
I did as instructed and created a stty.bat
file with the @IF "%1"=="size" exit 255
line and put it in PATH. Unfortunately this fix does not work for me when I open the Purescript compiler project. I still get the 'stty' is not recognized as an internal or external command, operable program or batch file.
error.
mmm, do you get those messages if you do a stack build
(hie triggers internally calls to stack)?
I just did a stack clean
, then stack build
. I did a search for stty
on the command line output, but nothing comes up so this is a sure no.
Mmm, i've just the same output, having the script stty.cmd
in ghcide:
[DEBUG] Finishing shakeRun (took 0.10s, exception: AsyncCancelled)
[DEBUG] Running cradle D:\dev\ws\haskell\ghcide\hie.yaml
> "stty" no se reconoce como un comando interno o externo,
> programa o archivo por lotes ejecutable.
> [0mConfiguring GHCi with the following packages: ghcide[0m
> "stty" no se reconoce como un comando interno o externo,
> programa o archivo por lotes ejecutable.
> D:\dev\ws\haskell\ghcide\.stack-work\install\43fb0f86\pkgdb;C:\sr\snapshots\565847cd\pkgdb;D:\bin\stack\x86_64-windows\ghc-8.6.5\lib\package.conf.d
The output is just after running the cradle, like seems to be in hie so i wonder if hie-bios
could be involved here. The %PATH%
has to be altered in some way to get this output, having stty.cmd
in %PATH%
.
(/cc @fendor)