为什么 "activator eclipse" 在新项目中产生 "Not a valid project ID: eclipse"?
Why does "activator eclipse" yield "Not a valid project ID: eclipse" in a new project?
我刚刚使用 activator new
创建了一个新项目,现在正尝试使用 activator eclipse
使它黯然失色。但是我遇到了一个问题:
D:\work\firebase>activator eclipse
[info] Loading project definition from D:\work\firebase\project
[info] Set current project to firebase (in build file:/D:/work/firebase/)
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error] ^
我正在使用 Typesafe Activator 1.3.2
将这篇文章添加到您的 plugins.sbt
文件中:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
Play no longer includes the sbteclipse or sbt-idea plugins, which enables users to upgrade IDE support independently of Play.
根据詹姆斯·沃德的说法:
I think the shims only get installed by the UI. But jsuereth can confirm. If so we need to fix this. A workaround is to first run the UI (activator ui
) on the project, then you can use activator eclipse
我是这样解决的:
1 添加行 addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
2 然后 运行 activator eclipse
我刚刚使用 activator new
创建了一个新项目,现在正尝试使用 activator eclipse
使它黯然失色。但是我遇到了一个问题:
D:\work\firebase>activator eclipse
[info] Loading project definition from D:\work\firebase\project
[info] Set current project to firebase (in build file:/D:/work/firebase/)
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error] ^
我正在使用 Typesafe Activator 1.3.2
将这篇文章添加到您的 plugins.sbt
文件中:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
Play no longer includes the sbteclipse or sbt-idea plugins, which enables users to upgrade IDE support independently of Play.
根据詹姆斯·沃德的说法:
I think the shims only get installed by the UI. But jsuereth can confirm. If so we need to fix this. A workaround is to first run the UI (
activator ui
) on the project, then you can useactivator eclipse
我是这样解决的: