mirror of https://github.com/sbt/sbt.git
Intellij import was broken in sbt 1.4.2 because we increased the scenarios in which virtual io is used. The problem wasn't actually virtual io but that we create a console terminal with jline3 and that could cause issues reading input from System.in. This can be fixed by only creating an instance of ConsoleTerminal if a console is actually available for the sbt process. When hasConsole is false, the consoleTerminalHolder will point to the SimpleTerminal whose inputStream method just reads directly from System.in. After making this change, I verified that intellij import worked again on windows. We also don't want to make a console terminal if it is a dumb terminal because jline 3 ends up having problems with the ConsoleTerminal. |
||
|---|---|---|
| .. | ||
| util-collection | ||
| util-complete | ||
| util-control | ||
| util-interface/src/main/java/xsbti | ||
| util-logging | ||
| util-logic/src | ||
| util-position/src | ||
| util-relation/src | ||
| util-scripted/src/main | ||