9

I just created a new project using activator new, and am now trying to eclipsify it using activator eclipse. But I am facing an issue:

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]        ^

I am using Typesafe Activator 1.3.2

Govind Singh
  • 14,083
  • 12
  • 58
  • 94

3 Answers3

19

Append this piece to your plugins.sbt file:

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.

Source

Mon Calamari
  • 4,225
  • 2
  • 23
  • 40
  • I tried this but it is not working! I am using Windows 8.1 with Java 8 update 74, activator version 1.3.9. and play 2.5! – cdaiga Apr 11 '16 at 19:53
  • I'd like to add that you can use the global `plugins.sbt` in `~/.sbt/0.13/plugins/` or the one in the `project/` folder of your project ([Installing sbteclipse](https://github.com/typesafehub/sbteclipse/wiki/Installing-sbteclipse)). – Michael Koch Sep 02 '16 at 14:12
  • What a crap. My first experiences with the Play 2 Framework and I'm getting errors by just doing what the docs say. That doesn't look very professional. – Pere Oct 27 '16 at 15:09
  • 1
    Don't forget to use the correct plugin version. For 2.5 I'm adding: addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0") to project/plugins.sbt – Casey Murray Jan 27 '17 at 19:05
  • @CaseyMurray Edit the answer, please. :-) – Mon Calamari Jan 27 '17 at 19:17
5

According to James Ward:

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

Source: https://github.com/typesafehub/activator/issues/212

Peanut
  • 3,195
  • 2
  • 27
  • 43
0

I solved by this way:

1 add line addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

2 then run activator eclipse

Community
  • 1
  • 1
richard
  • 1,275
  • 15
  • 28