-
Notifications
You must be signed in to change notification settings - Fork 843
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
"'stty' is not recognised" #4901
Comments
Update: I also get this error message when I run |
Well, it took some time, but I finally figured out what’s causing this error. Since
This also gives us a workaround (sort of), in the form of copying over
(Note that the exact path will be slightly different for other people.)
Luckily, it’s enough of a workaround for Intero to start working again: it no longer crashes itself when a Haskell file is loaded (which meant I couldn’t even open any Haskell file in Emacs). Completion and syntax checking still don’t work though, so we’ll have to keep looking for either a solution to this bug or another workaround. |
Well, I finally managed to fix this bug by submitting biegunka/terminal-size#13! You can build a custom version of
After this the error should disappear and Intero should work properly again. |
That Terminal-Size project doesn't seem to see a lot of action - may be worth requesting a workaround to this call be put directly into Stack, given how disruptive this is to anyone doing Emacs/Intero work. |
@MattLamari That’s basically what we’ve been discussing in the PR. |
I'm getting this same error on What's the way to go around this now? |
IMHO |
Well, Intero has just reached end of life. Not sure yet how it will affect this issue, but I think it’s worth noting that Intero was the only application I know of which this issue broke. |
Well, nothing changed, you missed a comment and this issue is still a kind of show stopper: #4901 (comment) mentions that it affects the alternative for intero, too. Can we somehow bump the priority of this issue? It really affects people and a relatively simple fix is known (#4968 (comment)). Or as a temporary alternative: The commit which introduced the |
Oh dear… I did miss that. This issue is more important than I thought! (Although I wouldn’t call HIE the alternative for intero; surely that would be ghcid or haskell-mode.)
That would certainly be nice! But unfortunately I don’t know of anyone who would be in a position to do that.
But has this fix been tested yet? Can you try implementing this on your own fork of
That would be a nice option as well, but again, I’m not sure who would be in a position to do this… |
Although commercialhaskell/stack#4901 is not resolved yet, there is a simple workaround, and I started to use WSL as a dev environment instead of the native Windows development environment
General summary/comments
Sometimes on Windows 10 running a
stack
command results in the output'stty' is not recognized as an internal or external command, operable program or batch file
. This is reproducible when usingeshell
in Emacs, but occurs sporadically in other situations as well; I will reply to this issue if I find any other way to reproduce this problem. Most troublingly, this issue stops Intero from working as well, as for some reason it aborts the install when the unexpected message is found.Steps to reproduce
emacs -q
(to negate the effects any init file could have).M-x eshell RET
to start eshell.stack exec -- echo "Test"
. (Or any otherstack
command, but this is a simple and reliable way to demonstrate this bug.)Expected
Only
Test
is printed.Actual
The following is printed:
(EDIT: The above originally had the name of a Turkish politician copied into the error message, Why I don’t know; I don’t usually have anything to do with Turkey. I suspect I was using his name to test diacritic support in an unrelated program, and accidentally copied his name into the message above. Sorry if it caused any confusion.)
Stack version
(I suppose I should take this opportunity to mention that the message about
stty
does not occur whenstack --version
is run; I suspect this is because--version
just prints a hardcoded message.)Method of installation
Official binary, downloaded from stackage.org or fpcomplete's package repository
The text was updated successfully, but these errors were encountered: