【问题标题】:Typesafe Activator compilation errorTypesafe Activator 编译错误
【发布时间】:2013-10-11 17:48:01
【问题描述】:

我在 Ubuntu 13.04 上使用 Typesafe Activator。它正在工作,但是当我创建一个新项目时,有时它什么也不做,有时它报告模板已被克隆(没有下载任何东西)。创建项目时出现以下编译错误:

正在刷新源文件列表以监视更改...

从中加载项目定义 /home/myusername/activator-play-autosource-reactivemongo/project

将当前项目设置为 activator-play-autosource-reactivemongo(在 构建文件:/home/myusername/activator-play-autosource-reactivemongo/)

应用状态转换 com.typesafe.sbtrc.SetupSbtChild from """/home/myusername/.sbt/boot/scala-2.9.2/com.typesafe.sbtrc/sbt-rc-probe-0-12/1.0-28edcfb4984c8be5e556bad192b62551504aa23d/sbt-rc-props-1.0-28edcfb4984c8be5e5556bad192djar255504djar266 :/home/myusername/.sbt/boot/scala-2.9.2/com.typesafe.sbtrc/sbt-rc-probe-0-12/1.0-28edcfb4984c8be5e556bad192b62551504aa23d/sbt-rc-probe-0-12-1.0-28edcfb4984c8be5e556baa2c8be5e556baa1 .jar"""

java.lang.ClassNotFoundException: com.typesafe.sbtrc.SetupSbtChild$

对完整日志使用“最后一个”。

重新加载源文件列表失败:sbt 进程从未联系过,所以 无法处理请求 WatchTransitiveSourcesRequest(true)

【问题讨论】:

  • 从您的角度来看,这个问题是否得到了解决/回答,或者仍然存在。不清楚?
  • @MartinGrotzke - 不,它还在那里 :(

标签: scala typesafe-activator


【解决方案1】:

project/build.properties 中,将sbt.version 从0.12.3 更改为0.13.0(或者0.12.4)。

我刚刚遇到了同样的问题,对我来说这已经解决了。

【讨论】:

  • 更改为 0.13.0 会导致其他问题,其中包括与 sbt-rc-defaults-0-12 的不兼容问题
  • 我在更改 SBT 版本后收到了(*:update) sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.1.1: not found
  • 在我的project/plugins.sbt 中,sbt 插件被禁用,它看起来像这样://addSbtPlugin("play" % "sbt-plugin" % "2.1.1")
  • 试试:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
【解决方案2】:

我刚刚删除了所有激活器生成的文件,它对我来说很好用

在 build.sbt 中: scalaVersion := "2.10.4"

在项目/plugin.sbt 中: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

激活器版本:1.1.3

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-22
    • 1970-01-01
    • 2016-12-01
    相关资源
    最近更新 更多