이 질문은 여전히 대답은, 그래서 여기에 내가 스칼라 2.12.1, SBT의 0.13.13.1를 사용하여, 윈도우 10에서 테스트
: 간다, 2.5 세입니다. 테스트 프로그램은 Cmd 및 WSL의 bash에서 잘 작동했습니다.
이전에는이 문제가 JLine 문제의 증상이었습니다. Java 시스템 변수 jline.terminal
을 사용하여 JLine 설정을 auto
, none
및 windows
과 같은 값으로 재정의 할 수 있습니다. Here are the complete docs.
이
C:\work\experiments\sbt\optionTest>sbt run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\work\experiments\sbt\optionTest\project
[info] Updating {file:/C:/work/experiments/sbt/optionTest/project/}optiontest-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to change-me (in build file:/C:/work/experiments/sbt/optionTest/)
[warn] there was one deprecation warning (since 2.11.0); re-run with -deprecation for details
[warn] one warning found
Enter a line:
asdf
You entered: asdf
[success] Total time: 46 s, completed Jan 7, 2017 1:27:27 PM
C:\work\experiments\sbt\optionTest> sbt "-Djline.terminal=none" run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\work\experiments\sbt\optionTest\project
[info] Set current project to change-me (in build file:/C:/work/experiments/sbt/optionTest/)
Enter a line:
asdf
You entered: asdf
[success] Total time: 3 s, completed Jan 7, 2017 1:28:12 PM
C:\work\experiments\sbt\optionTest> sbt "-Djline.terminal=windows" run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\work\experiments\sbt\optionTest\project
[info] Set current project to change-me (in build file:/C:/work/experiments/sbt/optionTest/)
Enter a line:
asdf
You entered: asdf
[success] Total time: 3 s, completed Jan 7, 2017 1:28:26 PM
당신이 실행중인 OS :
여기에 방법을 지정하는 다양한 설정의 몇 가지 예입니다? 어떤 종류의 단말기를 sbt에서 실행하고 있습니까? – gourlaysama
Windows 7 Pro, MS-DOS 셸, Java 1.7, 스칼라 2.10.4. 명확하지 않은 경우 println이 제대로 작동합니다. SBT에 키 입력이 표시되지 않은 이전 readLine입니다. –
문자가 화면에 표시되지 않더라도 입력이 제대로 인쇄됩니까? 그것은 입력 대기를 멈추는가? – lpiepiora