Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

'stty' is not recognized #1428

Open
tuomohopia opened this issue Oct 29, 2019 · 8 comments
Open

'stty' is not recognized #1428

tuomohopia opened this issue Oct 29, 2019 · 8 comments

Comments

@tuomohopia
Copy link

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
@tuomohopia
Copy link
Author

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

@jneira
Copy link
Member

jneira commented Oct 29, 2019

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.

@tuomohopia
Copy link
Author

@jneira yeah I think this is a problem with stack.

I was able to resolve this somehow with a tip from:
commercialhaskell/stack#4968

Basically, I made a stty.bat with the content:

@IF "%1"=="size" exit 255

@jneira
Copy link
Member

jneira commented Oct 29, 2019

Wow, thanks for the link and the workaround.
I hope they will merge the pr with the definitive solution

@mrakgr
Copy link

mrakgr commented Mar 16, 2020

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.

@jneira
Copy link
Member

jneira commented Mar 16, 2020

mmm, do you get those messages if you do a stack build (hie triggers internally calls to stack)?

@mrakgr
Copy link

mrakgr commented Mar 16, 2020

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.

@jneira
Copy link
Member

jneira commented Mar 16, 2020

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants