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

Error: the input device is not a TTY #3

Open
tillydray opened this issue Oct 15, 2018 · 2 comments
Open

Error: the input device is not a TTY #3

tillydray opened this issue Oct 15, 2018 · 2 comments

Comments

@tillydray
Copy link

I'm getting the below error when trying to format a haskell file.

Failed to run brittany; see the developer tools console for details. Error: Command failed: /path/to/brittany "/path/to/Course.hs"
the input device is not a TTY

However, when I run the exact same command directly in my terminal, it works
$ /path/to/brittany /path/to/Course.hs

module REDACTED where

import qualified Data.Aeson as Aeson
-- etc etc

The only relevant VSCode setting I have is "brittany.path": "/path/to/brittany"

We have our haskell app dockerized and I've seen people posting about having the same error output when using different tools related to Docker, but none of their suggestions helped so I'm hoping you can point me in the right direction.

@Ciantic
Copy link

Ciantic commented Nov 20, 2019

I'm running this without Docker in VSCode (Windows) and it throws me in the output:

Error: 'stty' is not recognized as an internal or external command,
operable program or batch file.

@mnxn
Copy link
Collaborator

mnxn commented Feb 2, 2020

@Ciantic Sorry for late reply but your error is an upstream problem.

Workaround is to create a file, stty.bat on your PATH with the following contents:

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

commercialhaskell/stack#4968 (comment)

I wonder if it's related to @JasonMFry's original problem (sorry that it hasn't been fixed yet).

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

No branches or pull requests

3 participants