Closed AustinBGibbons closed 11 years ago
Try plugins/build.sbt (not plugin/build.sbt)?
Same results:
[info] Loading global plugins from /Users/austin/.sbt/plugins [info] Loading project definition from /Users/austin/Delite/Delite/project [info] Set current project to delite (in build file:/Users/austin/Delite/Delite/) [error] Not a valid command: gen-idea [error] Expected '/' [error] Expected ':' [error] Not a valid key: gen-idea [error] gen-idea [error] ^
In ~/.sbt/plugins/build.sbt
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
Do you have two addSbtPlugin lines there actually?
This works for me in ~/.sbt/plugins/build.sbt
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
but this causes the behavior you describe:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
I'm getting the same problem. I can't get this plugin to work with sbt 0.12.1.
BTW, this works for me in ~/.sbt/plugins/build.sbt
– the 1.1.0 release doesn't – and also when I move it back to ~/.sbt/plugins/plugin.sbt
.
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
Curiously, with those statements I receive
[info] Done updating. [warn] Alternative project directory .sbt (/Users/austin/.sbt) has been deprecated since sbt 0.12.0. [warn] Please use the standard location: /Users/austin/project [warn] Using project/plugins/ (/Users/austin/.sbt/plugins) for plugin configuration is deprecated. [warn] Put .sbt plugin definitions directly in project/, [warn] .scala plugin definitions in project/project/, [warn] and remove the project/plugins/ directory. [error] java.lang.NoClassDefFoundError: xsbti/compile/ScalaInstance [error] Use 'last' for the full log.
On any sbt command. This may be an artifact of other changes to my system - I am not sure yet.
On Thu, Oct 25, 2012 at 10:33 AM, fommil notifications@github.com wrote:
BTW, this works for me in ~/.sbt/plugins/build.sbt – the 1.1.0 release doesn't – and also when I move it back to ~/.sbt/plugins/plugin.sbt.
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
—
Reply to this email directly or view it on GitHubhttps://github.com/mpeltonen/sbt-idea/issues/177#issuecomment-9786563.
This is strange, as I can run gen-idea successfully with all versions of sbt 0.11.3 to 0.12.1 and with both versions of sbt-idea (1.1.0 and 1.2.0-SNAPSHOT).
Below is my console session, with all different version combinations. It's a long one, as I decided to leave all artifact downloadings to it too. To make sure environment is clean, I removed ~/.ivy2/ and ~/.sbt/ first and tested with empty sbt project. You can try this too:
╭(~)
╰(mpe@l407)➜ rm -rf ~/.ivy2/
╭(~)
╰(mpe@l407)➜ rm -rf ~/.sbt/; mkdir -p ~/.sbt/plugins
╭(~)
╰(mpe@l407)➜ rm -rf test; mkdir -p test; cd test
╭(~/test)
╰(mpe@l407)➜ mkdir project
╭(~/test)
╰(mpe@l407)➜ printf 'sbt.version=0.11.3' > project/build.properties
╭(~/test)
╰(mpe@l407)➜ printf 'addSbtPlugin("com.github.mpeltonen" %% "sbt-idea" %% "1.1.0")' > ~/.sbt/plugins/build.sbt
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea
Getting net.java.dev.jna jna 3.2.3 ...
downloading http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.jar ...
[SUCCESSFUL ] net.java.dev.jna#jna;3.2.3!jna.jar (27681ms)
:: retrieving :: org.scala-sbt#boot-jna
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/17ms)
Getting org.scala-sbt sbt_2.9.1 0.11.3 ...
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt_2.9.1/0.11.3/jars/sbt_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt_2.9.1;0.11.3!sbt_2.9.1.jar (921ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main_2.9.1/0.11.3/jars/main_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#main_2.9.1;0.11.3!main_2.9.1.jar (3023ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.11.3/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.11.3!compiler-interface-bin.jar (1676ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.11.3/jars/compiler-interface-src.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.11.3!compiler-interface-src.jar (809ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.11.3/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_8_2;0.11.3!compiler-interface-bin.jar (979ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_1/0.11.3/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_8_1;0.11.3!compiler-interface-bin.jar (2119ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/0.11.3/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_9_2;0.11.3!compiler-interface-bin.jar (1815ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions_2.9.1/0.11.3/jars/actions_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#actions_2.9.1;0.11.3!actions_2.9.1.jar (1695ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.11.3/jars/interface.jar ...
[SUCCESSFUL ] org.scala-sbt#interface;0.11.3!interface.jar (793ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io_2.9.1/0.11.3/jars/io_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#io_2.9.1;0.11.3!io_2.9.1.jar (1140ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy_2.9.1/0.11.3/jars/ivy_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#ivy_2.9.1;0.11.3!ivy_2.9.1.jar (2501ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface_2.9.1/0.11.3/jars/launcher-interface_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface_2.9.1;0.11.3!launcher-interface_2.9.1.jar (772ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging_2.9.1/0.11.3/jars/logging_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#logging_2.9.1;0.11.3!logging_2.9.1.jar (821ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process_2.9.1/0.11.3/jars/process_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#process_2.9.1;0.11.3!process_2.9.1.jar (933ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run_2.9.1/0.11.3/jars/run_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#run_2.9.1;0.11.3!run_2.9.1.jar (1065ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile_2.9.1/0.11.3/jars/classfile_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#classfile_2.9.1;0.11.3!classfile_2.9.1.jar (1852ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath_2.9.1/0.11.3/jars/classpath_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#classpath_2.9.1;0.11.3!classpath_2.9.1.jar (1669ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler_2.9.1/0.11.3/jars/incremental-compiler_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#incremental-compiler_2.9.1;0.11.3!incremental-compiler_2.9.1.jar (1970ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist_2.9.1/0.11.3/jars/persist_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#persist_2.9.1;0.11.3!persist_2.9.1.jar (1222ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile_2.9.1/0.11.3/jars/compile_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#compile_2.9.1;0.11.3!compile_2.9.1.jar (1071ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion_2.9.1/0.11.3/jars/completion_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#completion_2.9.1;0.11.3!completion_2.9.1.jar (1280ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api_2.9.1/0.11.3/jars/api_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#api_2.9.1;0.11.3!api_2.9.1.jar (1399ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system_2.9.1/0.11.3/jars/task-system_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#task-system_2.9.1;0.11.3!task-system_2.9.1.jar (955ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks_2.9.1/0.11.3/jars/tasks_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks_2.9.1;0.11.3!tasks_2.9.1.jar (930ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking_2.9.1/0.11.3/jars/tracking_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#tracking_2.9.1;0.11.3!tracking_2.9.1.jar (797ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing_2.9.1/0.11.3/jars/testing_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#testing_2.9.1;0.11.3!testing_2.9.1.jar (821ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control_2.9.1/0.11.3/jars/control_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#control_2.9.1;0.11.3!control_2.9.1.jar (1470ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections_2.9.1/0.11.3/jars/collections_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#collections_2.9.1;0.11.3!collections_2.9.1.jar (1715ms)
downloading http://repo1.maven.org/maven2/org/scala-tools/sbinary/sbinary_2.9.0/0.4.0/sbinary_2.9.0-0.4.0.jar ...
[SUCCESSFUL ] org.scala-tools.sbinary#sbinary_2.9.0;0.4.0!sbinary_2.9.0.jar (857ms)
downloading http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar ...
[SUCCESSFUL ] org.apache.ivy#ivy;2.2.0!ivy.jar (1152ms)
downloading http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.jar ...
[SUCCESSFUL ] com.jcraft#jsch;0.1.46!jsch.jar (552ms)
downloading http://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar ...
[SUCCESSFUL ] commons-httpclient#commons-httpclient;3.1!commons-httpclient.jar (1026ms)
downloading http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar ...
[SUCCESSFUL ] commons-logging#commons-logging;1.0.4!commons-logging.jar (508ms)
downloading http://repo1.maven.org/maven2/commons-codec/commons-codec/1.2/commons-codec-1.2.jar ...
[SUCCESSFUL ] commons-codec#commons-codec;1.2!commons-codec.jar (359ms)
downloading http://repo1.maven.org/maven2/jline/jline/0.9.94/jline-0.9.94.jar ...
[SUCCESSFUL ] jline#jline;0.9.94!jline.jar (834ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache_2.9.1/0.11.3/jars/cache_2.9.1.jar ...
[SUCCESSFUL ] org.scala-sbt#cache_2.9.1;0.11.3!cache_2.9.1.jar (1398ms)
downloading http://repo1.maven.org/maven2/org/scala-tools/testing/test-interface/0.5/test-interface-0.5.jar ...
[SUCCESSFUL ] org.scala-tools.testing#test-interface;0.5!test-interface.jar (369ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
37 artifacts copied, 0 already retrieved (7245kB/32ms)
Getting Scala 2.9.1 (for sbt)...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.1/scala-compiler-2.9.1.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.1!scala-compiler.jar (9840ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.9.1!scala-library.jar (7699ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/jline/2.9.1/jline-2.9.1.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.9.1!jline.jar (520ms)
downloading http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar ...
[SUCCESSFUL ] org.fusesource.jansi#jansi;1.4!jansi.jar (576ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (19939kB/54ms)
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving com.github.mpeltonen#sbt-idea;1.1.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.apache.commons#commons-parent;15 ...
[info] Resolving org.apache#apache;7 ...
[info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#main_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#actions_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classfile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#io_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#control_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-sbt#interface;0.11.3 ...
[info] Resolving org.scala-sbt#logging_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#process_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classpath_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#launcher-interface_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#collections_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#api_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#persist_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#compile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#ivy_2.9.1;0.11.3 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#completion_2.9.1;0.11.3 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-sbt#run_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tracking_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#cache_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#testing_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#compiler-interface;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_1;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.11.3 ...
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.1.0/sbt-idea-1.1.0.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.1.0!sbt-idea.jar (1682ms)
[info] downloading http://repo1.maven.org/maven2/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar ...
[info] [SUCCESSFUL ] commons-io#commons-io;2.0.1!commons-io.jar (6483ms)
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving default#default-004b38;0.0 ...
[info] Resolving com.github.mpeltonen#sbt-idea;1.1.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#main_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#actions_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classfile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#io_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#control_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-sbt#interface;0.11.3 ...
[info] Resolving org.scala-sbt#logging_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#process_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classpath_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#launcher-interface_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#collections_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#api_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#persist_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#compile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#ivy_2.9.1;0.11.3 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#completion_2.9.1;0.11.3 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-sbt#run_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tracking_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#cache_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#testing_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#compiler-interface;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_1;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.11.3 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Updating {file:/Users/mpe/test/}default-3c2bf9...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Done updating.
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1-sources.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.1!scala-library.jar(src) (5209ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.1!scala-library.jar(doc) (15736ms)
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜ printf 'sbt.version=0.12.0' > project/build.properties
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea
Getting org.scala-sbt sbt 0.12.0 ...
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.0/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;0.12.0!sbt.jar (920ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.12.0/jars/main.jar ...
[SUCCESSFUL ] org.scala-sbt#main;0.12.0!main.jar (3698ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.12.0/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.0!compiler-interface-bin.jar (1086ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.12.0/jars/compiler-interface-src.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.0!compiler-interface-src.jar (1063ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.12.0/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_8_2;0.12.0!compiler-interface-bin.jar (1523ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_10_0-m4/0.12.0/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_10_0-m4;0.12.0!compiler-interface-bin.jar (996ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.12.0/jars/actions.jar ...
[SUCCESSFUL ] org.scala-sbt#actions;0.12.0!actions.jar (1264ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.12.0/jars/interface.jar ...
[SUCCESSFUL ] org.scala-sbt#interface;0.12.0!interface.jar (1259ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.12.0/jars/io.jar ...
[SUCCESSFUL ] org.scala-sbt#io;0.12.0!io.jar (1421ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.12.0/jars/ivy.jar ...
[SUCCESSFUL ] org.scala-sbt#ivy;0.12.0!ivy.jar (1903ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface/0.12.0/jars/launcher-interface.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface;0.12.0!launcher-interface.jar (772ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.12.0/jars/logging.jar ...
[SUCCESSFUL ] org.scala-sbt#logging;0.12.0!logging.jar (944ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process/0.12.0/jars/process.jar ...
[SUCCESSFUL ] org.scala-sbt#process;0.12.0!process.jar (954ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.12.0/jars/run.jar ...
[SUCCESSFUL ] org.scala-sbt#run;0.12.0!run.jar (942ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.12.0/jars/command.jar ...
[SUCCESSFUL ] org.scala-sbt#command;0.12.0!command.jar (1126ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath/0.12.0/jars/classpath.jar ...
[SUCCESSFUL ] org.scala-sbt#classpath;0.12.0!classpath.jar (1478ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.12.0/jars/completion.jar ...
[SUCCESSFUL ] org.scala-sbt#completion;0.12.0!completion.jar (1527ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.12.0/jars/api.jar ...
[SUCCESSFUL ] org.scala-sbt#api;0.12.0!api.jar (1516ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-integration/0.12.0/jars/compiler-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-integration;0.12.0!compiler-integration.jar (805ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-ivy-integration/0.12.0/jars/compiler-ivy-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.12.0!compiler-ivy-integration.jar (771ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system/0.12.0/jars/task-system.jar ...
[SUCCESSFUL ] org.scala-sbt#task-system;0.12.0!task-system.jar (1070ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks/0.12.0/jars/tasks.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks;0.12.0!tasks.jar (1638ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking/0.12.0/jars/tracking.jar ...
[SUCCESSFUL ] org.scala-sbt#tracking;0.12.0!tracking.jar (1026ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing/0.12.0/jars/testing.jar ...
[SUCCESSFUL ] org.scala-sbt#testing;0.12.0!testing.jar (2161ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.12.0/jars/control.jar ...
[SUCCESSFUL ] org.scala-sbt#control;0.12.0!control.jar (930ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.12.0/jars/collections.jar ...
[SUCCESSFUL ] org.scala-sbt#collections;0.12.0!collections.jar (1716ms)
downloading http://repo1.maven.org/maven2/jline/jline/1.0/jline-1.0.jar ...
[SUCCESSFUL ] jline#jline;1.0!jline.jar (688ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.12.0/jars/incremental-compiler.jar ...
[SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.12.0!incremental-compiler.jar (1539ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.12.0/jars/compile.jar ...
[SUCCESSFUL ] org.scala-sbt#compile;0.12.0!compile.jar (1553ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.12.0/jars/persist.jar ...
[SUCCESSFUL ] org.scala-sbt#persist;0.12.0!persist.jar (1091ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile/0.12.0/jars/classfile.jar ...
[SUCCESSFUL ] org.scala-sbt#classfile;0.12.0!classfile.jar (962ms)
downloading http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0-rc1/ivy-2.3.0-rc1.jar ...
[SUCCESSFUL ] org.apache.ivy#ivy;2.3.0-rc1!ivy.jar (1663ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.12.0/jars/cache.jar ...
[SUCCESSFUL ] org.scala-sbt#cache;0.12.0!cache.jar (1394ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.12.0/jars/test-agent.jar ...
[SUCCESSFUL ] org.scala-sbt#test-agent;0.12.0!test-agent.jar (788ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
40 artifacts copied, 0 already retrieved (8158kB/42ms)
Getting Scala 2.9.2 (for sbt)...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.2/scala-compiler-2.9.2.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.2!scala-compiler.jar (9389ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.9.2!scala-library.jar (7105ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/jline/2.9.2/jline-2.9.2.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.9.2!jline.jar (1900ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (20090kB/53ms)
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving com.github.mpeltonen#sbt-idea;1.1.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt;0.12.0 ...
[info] Resolving org.scala-sbt#main;0.12.0 ...
[info] Resolving org.scala-sbt#actions;0.12.0 ...
[info] Resolving org.scala-sbt#classpath;0.12.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.12.0 ...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.scala-sbt#interface;0.12.0 ...
[info] Resolving org.scala-sbt#io;0.12.0 ...
[info] Resolving org.scala-sbt#control;0.12.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving org.scala-sbt#completion;0.12.0 ...
[info] Resolving org.scala-sbt#collections;0.12.0 ...
[info] Resolving jline#jline;1.0 ...
[info] Resolving org.scala-sbt#api;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-integration;0.12.0 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.12.0 ...
[info] Resolving org.scala-sbt#logging;0.12.0 ...
[info] Resolving org.scala-sbt#process;0.12.0 ...
[info] Resolving org.scala-sbt#compile;0.12.0 ...
[info] Resolving org.scala-sbt#persist;0.12.0 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#classfile;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.0 ...
[info] Resolving org.scala-sbt#ivy;0.12.0 ...
[info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#run;0.12.0 ...
[info] Resolving org.scala-sbt#task-system;0.12.0 ...
[info] Resolving org.scala-sbt#tasks;0.12.0 ...
[info] Resolving org.scala-sbt#tracking;0.12.0 ...
[info] Resolving org.scala-sbt#cache;0.12.0 ...
[info] Resolving org.scala-sbt#testing;0.12.0 ...
[info] Resolving org.scala-sbt#test-agent;0.12.0 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#command;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-interface;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m4;0.12.0 ...
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.1.0/sbt-idea-1.1.0.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.1.0!sbt-idea.jar (856ms)
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving default#default-004b38;0.0 ...
[info] Resolving com.github.mpeltonen#sbt-idea;1.1.0 ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt;0.12.0 ...
[info] Resolving org.scala-sbt#main;0.12.0 ...
[info] Resolving org.scala-sbt#actions;0.12.0 ...
[info] Resolving org.scala-sbt#classpath;0.12.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.12.0 ...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.scala-sbt#interface;0.12.0 ...
[info] Resolving org.scala-sbt#io;0.12.0 ...
[info] Resolving org.scala-sbt#control;0.12.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving org.scala-sbt#completion;0.12.0 ...
[info] Resolving org.scala-sbt#collections;0.12.0 ...
[info] Resolving jline#jline;1.0 ...
[info] Resolving org.scala-sbt#api;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-integration;0.12.0 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.12.0 ...
[info] Resolving org.scala-sbt#logging;0.12.0 ...
[info] Resolving org.scala-sbt#process;0.12.0 ...
[info] Resolving org.scala-sbt#compile;0.12.0 ...
[info] Resolving org.scala-sbt#persist;0.12.0 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#classfile;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.0 ...
[info] Resolving org.scala-sbt#ivy;0.12.0 ...
[info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#run;0.12.0 ...
[info] Resolving org.scala-sbt#task-system;0.12.0 ...
[info] Resolving org.scala-sbt#tasks;0.12.0 ...
[info] Resolving org.scala-sbt#tracking;0.12.0 ...
[info] Resolving org.scala-sbt#cache;0.12.0 ...
[info] Resolving org.scala-sbt#testing;0.12.0 ...
[info] Resolving org.scala-sbt#test-agent;0.12.0 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#command;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-interface;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m4;0.12.0 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Updating {file:/Users/mpe/test/}default-3c2bf9...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Done updating.
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2-sources.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.2!scala-library.jar(src) (1752ms)
[info] downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2-javadoc.jar ...
[info] [SUCCESSFUL ] org.scala-lang#scala-library;2.9.2!scala-library.jar(doc) (20530ms)
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜ printf 'sbt.version=0.12.1' > project/build.properties
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea
Getting org.scala-sbt sbt 0.12.1 ...
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.1/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;0.12.1!sbt.jar (935ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.12.1/jars/main.jar ...
[SUCCESSFUL ] org.scala-sbt#main;0.12.1!main.jar (4701ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.12.1/jars/compiler-interface-src.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.1!compiler-interface-src.jar (836ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.12.1/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.12.1!compiler-interface-bin.jar (1108ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.12.1/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_8_2;0.12.1!compiler-interface-bin.jar (1864ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_10_0-m7/0.12.1/jars/compiler-interface-bin.jar ...
[SUCCESSFUL ] org.scala-sbt#precompiled-2_10_0-m7;0.12.1!compiler-interface-bin.jar (1202ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.12.1/jars/actions.jar ...
[SUCCESSFUL ] org.scala-sbt#actions;0.12.1!actions.jar (1345ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.12.1/jars/interface.jar ...
[SUCCESSFUL ] org.scala-sbt#interface;0.12.1!interface.jar (1090ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.12.1/jars/io.jar ...
[SUCCESSFUL ] org.scala-sbt#io;0.12.1!io.jar (1552ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.12.1/jars/ivy.jar ...
[SUCCESSFUL ] org.scala-sbt#ivy;0.12.1!ivy.jar (2495ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface/0.12.1/jars/launcher-interface.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface;0.12.1!launcher-interface.jar (1624ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.12.1/jars/logging.jar ...
[SUCCESSFUL ] org.scala-sbt#logging;0.12.1!logging.jar (1353ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process/0.12.1/jars/process.jar ...
[SUCCESSFUL ] org.scala-sbt#process;0.12.1!process.jar (1071ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.12.1/jars/run.jar ...
[SUCCESSFUL ] org.scala-sbt#run;0.12.1!run.jar (939ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.12.1/jars/command.jar ...
[SUCCESSFUL ] org.scala-sbt#command;0.12.1!command.jar (1116ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath/0.12.1/jars/classpath.jar ...
[SUCCESSFUL ] org.scala-sbt#classpath;0.12.1!classpath.jar (1523ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.12.1/jars/completion.jar ...
[SUCCESSFUL ] org.scala-sbt#completion;0.12.1!completion.jar (1540ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.12.1/jars/api.jar ...
[SUCCESSFUL ] org.scala-sbt#api;0.12.1!api.jar (1423ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-integration/0.12.1/jars/compiler-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-integration;0.12.1!compiler-integration.jar (806ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-ivy-integration/0.12.1/jars/compiler-ivy-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.12.1!compiler-ivy-integration.jar (777ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system/0.12.1/jars/task-system.jar ...
[SUCCESSFUL ] org.scala-sbt#task-system;0.12.1!task-system.jar (966ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks/0.12.1/jars/tasks.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks;0.12.1!tasks.jar (985ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking/0.12.1/jars/tracking.jar ...
[SUCCESSFUL ] org.scala-sbt#tracking;0.12.1!tracking.jar (799ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing/0.12.1/jars/testing.jar ...
[SUCCESSFUL ] org.scala-sbt#testing;0.12.1!testing.jar (939ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.12.1/jars/control.jar ...
[SUCCESSFUL ] org.scala-sbt#control;0.12.1!control.jar (777ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.12.1/jars/collections.jar ...
[SUCCESSFUL ] org.scala-sbt#collections;0.12.1!collections.jar (1414ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.12.1/jars/incremental-compiler.jar ...
[SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.12.1!incremental-compiler.jar (1836ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.12.1/jars/compile.jar ...
[SUCCESSFUL ] org.scala-sbt#compile;0.12.1!compile.jar (1080ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.12.1/jars/persist.jar ...
[SUCCESSFUL ] org.scala-sbt#persist;0.12.1!persist.jar (976ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile/0.12.1/jars/classfile.jar ...
[SUCCESSFUL ] org.scala-sbt#classfile;0.12.1!classfile.jar (1377ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.12.1/jars/cache.jar ...
[SUCCESSFUL ] org.scala-sbt#cache;0.12.1!cache.jar (1092ms)
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.12.1/jars/test-agent.jar ...
[SUCCESSFUL ] org.scala-sbt#test-agent;0.12.1!test-agent.jar (780ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
40 artifacts copied, 0 already retrieved (8336kB/45ms)
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m7;0.12.1 ...
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m7;0.12.1 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Updating {file:/Users/mpe/test/}default-3c2bf9...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Done updating.
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜ printf 'resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"\n\naddSbtPlugin("com.github.mpeltonen" %% "sbt-idea" %% "1.2.0-SNAPSHOT")' > ~/.sbt/plugins/build.sbt
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea[info] Loading global plugins from /Users/mpe/.sbt/plugins[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m7;0.12.1 ...
[info] downloading http://oss.sonatype.org/content/repositories/snapshots/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.2.0-SNAPSHOT/sbt-idea-1.2.0-SNAPSHOT.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT!sbt-idea.jar (2840ms)
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m7;0.12.1 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜ printf 'sbt.version=0.12.0' > project/build.properties
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt;0.12.0 ...
[info] Resolving org.scala-sbt#main;0.12.0 ...
[info] Resolving org.scala-sbt#actions;0.12.0 ...
[info] Resolving org.scala-sbt#classpath;0.12.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.12.0 ...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.scala-sbt#interface;0.12.0 ...
[info] Resolving org.scala-sbt#io;0.12.0 ...
[info] Resolving org.scala-sbt#control;0.12.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving org.scala-sbt#completion;0.12.0 ...
[info] Resolving org.scala-sbt#collections;0.12.0 ...
[info] Resolving jline#jline;1.0 ...
[info] Resolving org.scala-sbt#api;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-integration;0.12.0 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.12.0 ...
[info] Resolving org.scala-sbt#logging;0.12.0 ...
[info] Resolving org.scala-sbt#process;0.12.0 ...
[info] Resolving org.scala-sbt#compile;0.12.0 ...
[info] Resolving org.scala-sbt#persist;0.12.0 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#classfile;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.0 ...
[info] Resolving org.scala-sbt#ivy;0.12.0 ...
[info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#run;0.12.0 ...
[info] Resolving org.scala-sbt#task-system;0.12.0 ...
[info] Resolving org.scala-sbt#tasks;0.12.0 ...
[info] Resolving org.scala-sbt#tracking;0.12.0 ...
[info] Resolving org.scala-sbt#cache;0.12.0 ...
[info] Resolving org.scala-sbt#testing;0.12.0 ...
[info] Resolving org.scala-sbt#test-agent;0.12.0 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#command;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-interface;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m4;0.12.0 ...
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving default#default-004b38;0.0 ...
[info] Resolving com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt;0.12.0 ...
[info] Resolving org.scala-sbt#main;0.12.0 ...
[info] Resolving org.scala-sbt#actions;0.12.0 ...
[info] Resolving org.scala-sbt#classpath;0.12.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.12.0 ...
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Resolving org.scala-sbt#interface;0.12.0 ...
[info] Resolving org.scala-sbt#io;0.12.0 ...
[info] Resolving org.scala-sbt#control;0.12.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.2 ...
[info] Resolving org.scala-sbt#completion;0.12.0 ...
[info] Resolving org.scala-sbt#collections;0.12.0 ...
[info] Resolving jline#jline;1.0 ...
[info] Resolving org.scala-sbt#api;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-integration;0.12.0 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.12.0 ...
[info] Resolving org.scala-sbt#logging;0.12.0 ...
[info] Resolving org.scala-sbt#process;0.12.0 ...
[info] Resolving org.scala-sbt#compile;0.12.0 ...
[info] Resolving org.scala-sbt#persist;0.12.0 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#classfile;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.12.0 ...
[info] Resolving org.scala-sbt#ivy;0.12.0 ...
[info] Resolving org.apache.ivy#ivy;2.3.0-rc1 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#run;0.12.0 ...
[info] Resolving org.scala-sbt#task-system;0.12.0 ...
[info] Resolving org.scala-sbt#tasks;0.12.0 ...
[info] Resolving org.scala-sbt#tracking;0.12.0 ...
[info] Resolving org.scala-sbt#cache;0.12.0 ...
[info] Resolving org.scala-sbt#testing;0.12.0 ...
[info] Resolving org.scala-sbt#test-agent;0.12.0 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#command;0.12.0 ...
[info] Resolving org.scala-sbt#compiler-interface;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.12.0 ...
[info] Resolving org.scala-sbt#precompiled-2_10_0-m4;0.12.0 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Resolving org.scala-lang#scala-library;2.9.2 ...
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜ printf 'sbt.version=0.11.3' > project/build.properties
╭(~/test)
╰(mpe@l407)➜ sbt gen-idea
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Updating {file:/Users/mpe/.sbt/plugins/}default-004b38...
[info] Resolving com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#main_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#actions_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classfile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#io_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#control_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-sbt#interface;0.11.3 ...
[info] Resolving org.scala-sbt#logging_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#process_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classpath_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#launcher-interface_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#collections_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#api_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#persist_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#compile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#ivy_2.9.1;0.11.3 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#completion_2.9.1;0.11.3 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-sbt#run_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tracking_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#cache_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#testing_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#compiler-interface;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_1;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.11.3 ...
[info] downloading http://oss.sonatype.org/content/repositories/snapshots/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.2.0-SNAPSHOT/sbt-idea-1.2.0-SNAPSHOT.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT!sbt-idea.jar (2733ms)
[info] Done updating.
[info] Loading project definition from /Users/mpe/test/project
[info] Updating {file:/Users/mpe/test/project/}default-c5cefb...
[info] Resolving default#default-004b38;0.0 ...
[info] Resolving com.github.mpeltonen#sbt-idea;1.2.0-SNAPSHOT ...
[info] Resolving commons-io#commons-io;2.0.1 ...
[info] Resolving org.scala-sbt#sbt_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#main_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#actions_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classfile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#io_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#control_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Resolving org.scala-sbt#interface;0.11.3 ...
[info] Resolving org.scala-sbt#logging_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#process_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#classpath_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#launcher-interface_2.9.1;0.11.3 ...
[info] Resolving org.scala-lang#scala-compiler;2.9.1 ...
[info] Resolving org.scala-sbt#incremental-compiler_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#collections_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#api_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#persist_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.9.0;0.4.0 ...
[info] Resolving org.scala-sbt#compile_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#ivy_2.9.1;0.11.3 ...
[info] Resolving org.apache.ivy#ivy;2.2.0 ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving commons-httpclient#commons-httpclient;3.1 ...
[info] Resolving commons-logging#commons-logging;1.0.4 ...
[info] Resolving commons-codec#commons-codec;1.2 ...
[info] Resolving org.scala-sbt#completion_2.9.1;0.11.3 ...
[info] Resolving jline#jline;0.9.94 ...
[info] Resolving org.scala-sbt#run_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#task-system_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tasks_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#tracking_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#cache_2.9.1;0.11.3 ...
[info] Resolving org.scala-sbt#testing_2.9.1;0.11.3 ...
[info] Resolving org.scala-tools.testing#test-interface;0.5 ...
[info] Resolving org.scala-sbt#compiler-interface;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_8_1;0.11.3 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.11.3 ...
[info] Done updating.
[info] Set current project to default-3c2bf9 (in build file:/Users/mpe/test/)
[info] Trying to create an Idea module default-3c2bf9
[info] Resolving org.scala-lang#scala-library;2.9.1 ...
[info] Excluding folder target
[info] Created /Users/mpe/test/.idea/IdeaProject.iml
[info] Created /Users/mpe/test/.idea
[info] Excluding folder /Users/mpe/test/target
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9.iml
[info] Created /Users/mpe/test/.idea_modules/default-3c2bf9-build.iml
╭(~/test)
╰(mpe@l407)➜
Issue #172 is caused by the typesafe
fork of sbt-idea
plugin having the same identifiers and class names as the original mpeltonen
version but also being being critically incompatible - see Play Framework issue #804.
This looks to me like the same problem, but @AustinBGibbons mentions he doesn't use Play (sorry, should have read that earlier). Maybe this problem is unrelated, after all, but I have to say that while trying to work out what was going on with this issue I got the impression that for a while Typesafe were distributing a version of their plugin without the '-TYPESAFE' distingusher in the version name... so actually depending on which ivy repo you downloaded 'sbt-idea' from, you might get one of two incompatible versions that actually had identical coordinates. That is kind of me just slinging wild allegations tho, as I don't have any immediate evidence of that to hand.
But @AustinBGibbons has wrong directory (.sbt/plugin) in the original example, duplicate plugin declaration in second, an the third problem ( java.lang.NoClassDefFoundError: xsbti/compile/ScalaInstance) has probably something to do with sbt caching, or at least I can't imagine that error could be sbt-idea related?
Cleaning sbt compile target dirs might help? Try with clean project and ~/.ivy2 + ~/.sbt like my console trace?
@rtyley @mpeltonen I was running into the same issue as described here and in @rtyley 's reported issues with the resolver collisions.
I removed iv2 folder:
rm -rf ~/.ivy2
and only have this in my ~/.sbt/plugins/build.sbt I only have:
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
Seems to work now for all of my sbt projects that were using intellij
I am having the same issue. Note that I couldn't get sbt-idea
plugin to load until I used the declared "sbt-dir" in the top of my sbt
output.
Using ~/.sbt/0.12.2 as sbt dir, -sbt-dir to override.
That is, my plugins looks like this:
$ cat ~/.sbt/0.12.2/plugins/build.sbt
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0")
I tried removing the ~/.ivy2/ and ~/.sbt/ folders, but this doesn't help. Anything in the ~/.sbt/0.12.2
folder seems to get moved to ~/.sbt/plugins
and then ignored on load.
I still can't get either sbt-idea
or idea
to be a recognized command.
@jeremywadsack: Weird, as this seems to work for me: https://gist.github.com/mpeltonen/4753139 (based on the "Using ... as sbt dir ...", you're using sbt-extras wrapper script aren't you?)
Try also adding the addSbtPlugin to
Ah, well I see now that the command is gen-idea
, not idea
or sbt-idea
— apparently I spent too much time reading the older posts on this thread (and not the title). Sorry for the noise.
I'm having the same issue as the OP. sbt definitely picks up the plugin
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.2.0/sbt-idea-1.2.0.jar ...
but still errors with
[error] Not a valid command: gen-idea
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: gen-idea
[error] gen-idea
[error]
@h3adache are you using Play in your project?
Hey @mpeltonen I have it kind of figured out (not cause but a solution).
If I use:
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0-SNAPSHOT")
Or just
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0")
It doesn't work. If I use:
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.2.0")
It works fine! Very strange
Strage indeed, as http://mpeltonen.github.com/maven/com/github/mpeltonen/ does not have any version of the plugin after 1.0. So I can't understand why the last two are somehow different.
Are those definitions in
I'd try 'rm -rf ~/.ivy2/cache' too. I've solved many strange resolve errors with that, for reasons I don't understand.
You are right, the resolver line wasn't what fixed it. I'm testing different setups that I used yesterday trying to resolve this before adding the github line which I found on stackoverflow. But none of them seem to reproduce the error that I was getting yesterday anymore. I would say that maybe it had trouble resolving from the maven repo last night. Unfortunately I didn't check the results of the resolving last night but I didn't notice any errors after
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.2.0/sbt-idea-1.2.0.jar ...
Sorry I am not more helpful in figuring out the cause of this error. It's like a voodoo issue at this time :(
Original problem is most probably a Play Framework issue (same as #172). Fixed in latest Play version AFAIK.
For future readers: I stumbled upon the same issue. It was caused because I had my sbt files next to my src directory. Somehow it expects your project structure to be like this:
project build.sbt plugins.sbt src __ ...
Then it works properly (for me :-)).
+1 - that worked for me too @kamilafsar
+1 for @h3adache solution, worked for me scala 2.10.3 and sbt 0.13.1
I tried @kamilafsar and @h3adache solutions but no luck.
I am trying to setup an the IDEA project for one of the Coursera Functional Programming Assignments. Just does not recognise the gen-idea task.
@mpeltonen , any chance I can email you the project folder for you to debug or try if you can get it working?
Yeah, go ahead and email me the project @quantcoder. I can have a look.
@quantcoder: So where exactly did you put your sbt-idea plugin declaration? There's none in the project you sent me, and after adding the declaration to project/plugins.sbt like this, gen-idea works just fine:
╭(~/tmp/objsets)
╰(mpe@l407)➜ cat project/plugins.sbt
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")
(~/tmp/objsets)
╰(mpe@l407)➜ sbt gen-idea
[info] Loading global plugins from /Users/mpe/.sbt/plugins
[info] Loading project definition from /Users/mpe/tmp/objsets/project/project
[info] Loading project definition from /Users/mpe/tmp/objsets/project
[info] Set current project to progfun-objsets (in build file:/Users/mpe/tmp/objsets/)
[info] Creating IDEA module for project 'assignment' ...
[info] Resolving org.hamcrest#hamcrest-core;1.1 ...
[info] Creating IDEA module for project 'submission' ...
[info] Resolving org.hamcrest#hamcrest-core;1.1 ...
[info] Excluding folder target
[info] Created /Users/mpe/tmp/objsets/.idea/IdeaProject.iml
[info] Created /Users/mpe/tmp/objsets/.idea
[info] Excluding folder /Users/mpe/tmp/objsets/target
[info] Created /Users/mpe/tmp/objsets/.idea_modules/assignment.iml
[info] Excluding folder /Users/mpe/tmp/objsets/submission/target
[info] Created /Users/mpe/tmp/objsets/.idea_modules/submission.iml
[info] Created /Users/mpe/tmp/objsets/.idea_modules/assignment-build.iml
@mpeltonen, I had the plugin.sbt in the wrong directory!
Thanks for your help. Works perfectly.
Similarly to : https://github.com/mpeltonen/sbt-idea/issues/172 I receive
austin:Delite austin$ sbt gen-idea [info] Loading project definition from /Users/austin/Delite/Delite/project [info] Set current project to delite (in build file:/Users/austin/Delite/Delite/) [error] Not a valid command: gen-idea [error] Expected '/' [error] Expected ':' [error] Not a valid key: gen-idea [error] gen-idea [error] ^ austin:Delite austin$ sbt [info] Loading project definition from /Users/austin/Delite/Delite/project [info] Set current project to delite (in build file:/Users/austin/Delite/Delite/)
Different because :
currently in ~/.sbt/plugin/build.sbt : //resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
Any suggestions would be appreciated :-)