Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does "activator eclipse" yield "Not a valid project ID: eclipse" in a new project?

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

like image 248
Govind Singh Avatar asked Jul 02 '15 12:07

Govind Singh


2 Answers

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

like image 116
Mon Calamari Avatar answered Nov 02 '22 17:11

Mon Calamari


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

like image 40
Peanut Avatar answered Nov 02 '22 18:11

Peanut