sbt-idea
sbt-idea copied to clipboard
Documentation to add the plugin in .sbt/version doesn't seem to work
Hello,
I think there's a problem in the documentation.
The plugin doesn't seem to be able to be loaded when I put it in: file:/home/sebastien/.sbt/0.13/plugins But it works in file:/home/sebastien/.sbt/plugins
See:
> gensebastien@clemence-XPS-L412Z:quickcheck$ sbt
Loading /home/sebastien/Bureau/devhome/install/sbt-13.0/bin/sbt-launch-lib.bash
[info] Loading project definition from /home/sebastien/Bureau/quickcheck/project/project
[info] Loading project definition from /home/sebastien/Bureau/quickcheck/project
[info] Set current project to progfun-quickcheck (in build file:/home/sebastien/Bureau/quickcheck/)
> ge
{invalid input}
> ide
{invalid input}
> ide
{invalid input}
> ide
{invalid input}
After adding it to file:/home/sebastien/.sbt/plugins
> sebastien@clemence-XPS-L412Z:quickcheck$ sbt
Loading /home/sebastien/Bureau/devhome/install/sbt-13.0/bin/sbt-launch-lib.bash
[info] Loading global plugins from /home/sebastien/.sbt/plugins
[info] Updating {file:/home/sebastien/.sbt/plugins/}default-413acf...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.5.2/sbt-idea-1.5.2.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.5.2!sbt-idea.jar (305ms)
[info] Done updating.
[info] Loading project definition from /home/sebastien/Bureau/quickcheck/project/project
[info] Updating {file:/home/sebastien/Bureau/quickcheck/project/project/}default-8f6260...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] Done updating.
[info] Loading project definition from /home/sebastien/Bureau/quickcheck/project
[info] Updating {file:/home/sebastien/Bureau/quickcheck/project/}default-525128...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] Done updating.
[info] Set current project to progfun-quickcheck (in build file:/home/sebastien/Bureau/quickcheck/)
> gen-idea
[info] Creating IDEA module for project 'assignment' ...
[info] Updating {file:/home/sebastien/Bureau/quickcheck/}assignment...
[info] Resolving org.hamcrest#hamcrest-parent;1.1 ...
[info] downloading http://repo1.maven.org/maven2/org/scalacheck/scalacheck_2.10/1.10.1/scalacheck_2.10-1.10.1.jar ...
[info] [SUCCESSFUL ] org.scalacheck#scalacheck_2.10;1.10.1!scalacheck_2.10.jar (356ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.10.1/scala-actors-2.10.1.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-actors;2.10.1!scala-actors.jar (153ms)
[info] downloading http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar ...
[info] [SUCCESSFUL ] junit#junit;4.10!junit.jar (358ms)
[info] downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar ...
[info] [SUCCESSFUL ] org.hamcrest#hamcrest-core;1.1!hamcrest-core.jar (159ms)
[info] Done updating.
[info] Resolving org.hamcrest#hamcrest-core;1.1 ...
[info] downloading http://repo1.maven.org/maven2/org/scalacheck/scalacheck_2.10/1.10.1/scalacheck_2.10-1.10.1-sources.jar ...
[info] [SUCCESSFUL ] org.scalacheck#scalacheck_2.10;1.10.1!scalacheck_2.10.jar(src) (101ms)
[info] downloading http://repo1.maven.org/maven2/org/scalacheck/scalacheck_2.10/1.10.1/scalacheck_2.10-1.10.1-javadoc.jar ...
[info] [SUCCESSFUL ] org.scalacheck#scalacheck_2.10;1.10.1!scalacheck_2.10.jar(doc) (238ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.10.1/scala-actors-2.10.1-sources.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-actors;2.10.1!scala-actors.jar(src) (115ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.10.1/scala-actors-2.10.1-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-actors;2.10.1!scala-actors.jar(doc) (4409ms)
[info] downloading http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10-sources.jar ...
[info] [SUCCESSFUL ] junit#junit;4.10!junit.jar(src) (100ms)
[info] downloading http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10-javadoc.jar ...
[info] [SUCCESSFUL ] junit#junit;4.10!junit.jar(doc) (147ms)
[info] downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1-sources.jar ...
[info] [SUCCESSFUL ] org.hamcrest#hamcrest-core;1.1!hamcrest-core.jar(src) (86ms)
[warn] [FAILED ] org.hamcrest#hamcrest-core;1.1!hamcrest-core.jar(doc): (0ms)
[warn] ==== local: tried
[warn] /home/sebastien/.ivy2/local/org.hamcrest/hamcrest-core/1.1/docs/hamcrest-core-javadoc.jar
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1-javadoc.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.hamcrest#hamcrest-core;1.1!hamcrest-core.jar(doc)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[info] Creating IDEA module for project 'submission' ...
[info] Updating {file:/home/sebastien/Bureau/quickcheck/}submission...
[info] Resolving org.hamcrest#hamcrest-core;1.1 ...
[info] Done updating.
[info] Resolving org.hamcrest#hamcrest-core;1.1 ...
[info] Excluding folder target
[info] Created /home/sebastien/Bureau/quickcheck/.idea/IdeaProject.iml
[info] Created /home/sebastien/Bureau/quickcheck/.idea
[info] Excluding folder /home/sebastien/Bureau/quickcheck/target
[info] Created /home/sebastien/Bureau/quickcheck/.idea_modules/assignment.iml
[info] Excluding folder /home/sebastien/Bureau/quickcheck/submission/target
[info] Created /home/sebastien/Bureau/quickcheck/.idea_modules/submission.iml
[info] Created /home/sebastien/Bureau/quickcheck/.idea_modules/assignment-build.iml
>
your project uses sbt 0.12.4 and for that version you should add plugins to ~/.sbt/plugins
for 0.13.x projects use .sbt/0.13/plugins
0.13 branch is default, so you see instructions for 0.13, but you need to switch to 0.12 branch
oooh ok thank you, didn't know that.
So the effective version of my sbt jar have no impact, it's the target sbt version of the project and the retrocompatibility stuff that makes it not work right?
you have a 0.13 launcher, but your project defines sbt version to be used