-
Notifications
You must be signed in to change notification settings - Fork 182
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
Problems when running under cygwin+mintty #62
Comments
Good question, I'm not sure we ever had anything for cywin specially. |
About detecting that we're inside cygwin: It might be possible to analyze the enviroment variables from
Unfortunately the Java process doesn't have the OSTYPE variable under Cygwin, even though BTW, I noticed in TerminalFactory.java that the line |
@orfjackal ya its clearly a bug from 1fd2559 :-( |
My fault. Pushed a fix: 6f69925 |
Gah, that's no good either, in case it's null. Fixed in cf01c35 |
Sorry for taking so long to get back to this. The option I like best is to look at We could also check for a slew of specific Thoughts? |
Unfortunately, in my VM testing, even using a UnixTerminal doesn't work for my cygwin/mintty setup. Using So for now, making the Hopefully someone with some Cygwin knowledge can figure out why |
We detect cygwin and set jline terminal explicitly; this is a workaround for jline/jline2#62.
On cygwin, fix sqlline to work around jline/jline2#62. sqlline now uses build-classpath on both linux and cygwin, in contrast to sqlline.bat, which uses copy-dependencies.
There's a report at technomancy/leiningen#850 of this issue on Windows + cygwin + mintty, which sounds like it's not detecting the need for
UnixTerminal
. @orfjackal has included a workaround that fixes things for him, but it seems like ideally this would be done by jline so that projects using jline don't all have to do the same workaround.I haven't reproduced this locally yet, but I thought I'd remembered seeing things work as expected in cygwin. Could just be mis-remembering, because the terminal selection code appears to be only based on OS name.
Thoughts?
The text was updated successfully, but these errors were encountered: