SBT conf="runtime" dependencies are added under scope Test in IDEA

... whereas they should be added under scope Runtime.

This is happening under the IDEA 14 EAP as well as the latest preview (138.2458.8). Scala plugin version: 1.0.93.17 EAP (was occurring under 1.0.93.10 EAP too).

8 comments
Comment actions Permalink

Unfortunately, I was unable to reproduce the issue.

Could you please attach or send me an example?

0
Comment actions Permalink

Sure - this build.sbt should do:

libraryDependencies += "org.apache.ivy" % "ivy" % "2.3.0" % "runtime"

Now import this project into IDEA and you'll get ivy under scope Test. This is using the latest sbt-structure, version 2.5.1.
Looking at the output of sbt-structure's read-project command (I've added sbt-structure 2.5.1 as a build dependency), I see that it gives me:

<module organization="org.apache.ivy" name="ivy" revision="2.3.0" configurations="test;runtime"/>

Which is probably the case because test <: runtime. However this makes it unclear for the Scala plugin's SBT integration, which one to pick if it can only pick one..
Maybe that xml tag should display runtime first (and any dependent configurations afterwards) such that IDEA will correctly pick the first one -- or only runtime.

0
Comment actions Permalink

Ok, nevermind, I've in fact pinpointed the bug, so no need for an example anymore.
Thanks for reporting.

0
Comment actions Permalink

Hi,

Thank you for the fix !
Forgive me for the generic question, but when can we expect a new version of the plugin ? Or better, how can we follow fixes releases in general ?

Thanks !

0
Comment actions Permalink

New EAP build for IntelliJ IDEA 14 will be available on the next week.
At the end of the October we will cherry-pick some important fixes to IntelliJ IDEA 13 version and we will upload it.
In nightly builds for IDEA 14 fix will be available soon: http://confluence.jetbrains.com/display/SCA/Scala+Plugin+Nightly+Builds+for+Cassiopeia

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Thanks for the answer. I hope it's an "important" fix because I'm running idea 13
:) (it surely is preventing me from using idea for this project).


Is there a way to check what fixes a release contains ?

0
Comment actions Permalink

Just follow our blog: http://blog.jetbrains.com/scala/

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.