未能在build.sbt中包含com.typesafe(对于Scala并在Heroku上喷涂) [英] Failing to include com.typesafe in build.sbt (for Scala and spray on Heroku)
问题描述
在最后提到的模板项目运行良好之后,添加行 import com.typesafe.startscript.StartScriptPlugin
到我的 build.sbt
,任何sbt命令现在都会失败,并且: /build.sbt:1:错误:object typesafe不是包的成员com
import com.typesafe.startscript.StartScriptPlugin
^
[error]类型错误在表达式
在Ubuntu桌面13.04上,我尝试安装完整的类型安全堆栈,尽管其他所有工作只用本地安装的更新版本sbt直到这一点。但是这个解决这个错误的尝试并没有改变任何东西。这在我的情况下似乎是将准备好的Heroku置于死胡同。
我想这个集成问题可能很简单,但是太多了移动部件在这里,也许有一个简单的洞察力,可以让我在这里取消...它感觉谷歌就像我可能是唯一遇到这个具体问题......但也许解决方案对你来说简单死了。
看起来这个组合适用于sbt 0.12.0,但不是0.12.4或0.13.0 ....改变该sbt项目0.12.0使它的工作。
Trying to bootstrap my boilerplate Scala Spray project on Heroku, I am trying to add the necessary tweaks to my local project as per the Heroku documentation. The spray boilerplate project has been derived from the excellent template at github that simply works and has elegant code and tests included.
After the last mentioned template project worked great, when adding the line import com.typesafe.startscript.StartScriptPlugin
to my build.sbt
, any sbt command now fails with:
/build.sbt:1: error: object typesafe is not a member of package com
import com.typesafe.startscript.StartScriptPlugin
^
[error] Type error in expression
Being on Ubuntu desktop 13.04, I tried installing the full typesafe stack, although everything else worked with only a local installation of a more recent version sbt till this point. But this attempt at getting this error solved doesn't change anything. Which seems in my case to place getting-ready-for-Heroku at a dead end.
I guess this integration problem may be simple to nail down, but there's too many moving parts for me here and maybe there's a simple insight that can get me unstuck here... it feels on Google like I'm probably the only one having encountered this specific problem.... but maybe the solution is dead simple for you.
Looks like this combination works with sbt 0.12.0 but not 0.12.4 nor 0.13.0.... changing the sbt project to 0.12.0 makes it work.
这篇关于未能在build.sbt中包含com.typesafe(对于Scala并在Heroku上喷涂)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!