Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 为什么sbt 0.13.9报告它';s 0.13.8?_Scala_Sbt - Fatal编程技术网

Scala 为什么sbt 0.13.9报告它';s 0.13.8?

Scala 为什么sbt 0.13.9报告它';s 0.13.8?,scala,sbt,Scala,Sbt,我从下载并安装了sbt-0.13.9.msi。但是它报告说它实际上是0.13.8: >sbt --version Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup port was removed in 8.0 sbt launcher version 0.13.8 sbt about报告了相同的内容: >sbt about Java HotSpot(TM) 64-Bit

我从下载并安装了
sbt-0.13.9.msi
。但是它报告说它实际上是0.13.8:

>sbt --version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
sbt launcher version 0.13.8
sbt about
报告了相同的内容:

>sbt about
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading global plugins from C:\Users\$USER$\.sbt\0.13\plugins
[info] Set current project to documents (in build file:/C:/Users/$USER$/Documents/)

[info] This is sbt 0.13.8
[info] The current project is {file:/C:/Users/$USER$/Documents/}documents 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.4
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.4

我做错了什么?或者这是一个bug?

sbt
在项目配置中设置为
0.13.8

您的
build.properties
文件可能包含行
sbt.version=0.13.8


如果希望项目按版本
0.13.9
执行,只需更新该值。

sbt
在项目配置中设置为
0.13.8

您的
build.properties
文件可能包含行
sbt.version=0.13.8


如果您希望您的项目按版本
0.13.9
执行,只需更新值。

我没有
build.properties
文件,如果我进入一个没有项目的空目录,sbt仍然报告相同的事情。使用
sbt.version=0.13.9
创建
build.properties
解决了我的问题。当明显未找到
build.properties
文件时,sb 0.13.9默认为sb 0.13.8。如果您确定这是真的,则应在报告中报告。我无法在Mac OS X上重现此问题。我还可以确认此行为-除非在
build.properties
文件中明确指定,否则sbt将解析为0.13.8版本(即使安装了0.13.9)。使用IDEA 14,我还尝试在sbt 0.13.9安装后删除
.ivy
.sbt
目录,但没有结果。我没有
build.properties
文件,如果我进入一个没有项目的空目录,sbt仍然会报告同样的事情。使用
sbt.version=0.13.9
创建
build.properties
解决了我的问题。当明显未找到
build.properties
文件时,sb 0.13.9默认为sb 0.13.8。如果您确定这是真的,则应在报告中报告。我无法在Mac OS X上重现此问题。我还可以确认此行为-除非在
build.properties
文件中明确指定,否则sbt将解析为0.13.8版本(即使安装了0.13.9)。使用IDEA 14,我还尝试在sbt 0.13.9安装后删除
.ivy
.sbt
目录,但没有效果。您如何确定刚刚安装的sbt与正在运行的sbt相同?您是否可能在不同的位置安装了多个SBT?这是一台新安装的机器。我从未在其上安装过sbt 0.13.8,
Add/Remove Software
也未显示任何其他sbt安装。您如何确定刚才安装的sbt与正在运行的sbt相同?您是否可能在不同的位置安装了多个SBT?这是一台新安装的机器。我从未在其上安装过sbt 0.13.8,也未显示任何其他sbt安装。