SBT交互式模式命令在Babun下未完成



i我无法在交互式模式下以SBT运行任何命令,而同一命令在命令行上使用。我正在Babun Cygwin的Windows 7上的Java 1.8.102-B14运行SBT 0.13.13。我创建了一个最小的Scala项目,以解决其他SBT问题。SBT可以编译我的项目并可以进入交互式模式,但是随后它被任何命令陷入困境。为什么/我该如何解决此问题?

{ sbtXmpl }  > ./sbt projects
+ java -jar ./build/buildcommon/sbt-launch.jar projects
[info] Loading global plugins from C:UsersMyName.sbt.13plugins
[info] Loading project definition from C:devsbtXmplproject
[info] Set current project to root (in build file:/C:/dev/sbtXmpl/)
[info] In file:/C:/dev/sbtXmpl/
[info]     core
[info]   * root
[info]     util
{ sbtXmpl }  > ./sbt
+ java -jar ./build/buildcommon/sbt-launch.jar
[info] Loading global plugins from C:UsersMyName.sbt.13plugins
[info] Loading project definition from C:devsbtXmplproject
[info] Set current project to root (in build file:/C:/dev/sbtXmpl/)
> projects
// This never returns
^C
zsh: command not found: projects

这可能与控制台Java应用程序(SBT)与Shell交互的方式有关。我能够通过在我用来运行SBT的脚本中添加以下片段来解决SBT的问题:

if [ "$(expr substr $(uname -s) 1 6)" == "CYGWIN" ];then
    #Ensure that sbt uses the correct terminal settings
    CYG_OPTS="-Djline.terminal=jline.UnixTerminal -Dsbt.cygwin=true"
    #Prevent erase, kill, werase, and rprnt special characters 
    stty -icanon min 1 -echo > /dev/null 2>&1
fi
#launch sbt
java $CYG_OPTS $JAVA_OPTS -jar $SBT_LAUNCHER "$@"

我尚未找到python的解决方案。

dept程序(SBT,Python)在Babun

下未完成

Babun用控制台输入

打破Winows应用程序

最新更新