aiyanbo / sbt-dependency-updates

⬆️ SBT plugin that can check Maven and Ivy repositories for dependency and plugin updates
Apache License 2.0
81 stars 10 forks source link

match error on sbt-structure-extractor #1

Closed stephennancekivell closed 6 years ago

stephennancekivell commented 6 years ago

Hi, great plugin.

Im getting this exception running dependencyUpdates on my sbt 1.1.0 project where i use intellij.

It looks like its crashing on a global plugin that idea adds conditionally.

 dependencyUpdates
[error] scala.MatchError: addSbtPlugin("org.jetbrains" % "sbt-structure-extractor" % "2017.2"), (of class java.lang.String)
[error]     at org.jmotor.sbt.Reporter$.$anonfun$plugins$4(Reporter.scala:59)
[error]     at scala.collection.immutable.Stream.map(Stream.scala:415)
cat ~/.sbt/1.0/plugins/idea.sbt 
// Generated by IntelliJ-IDEA Scala plugin.
// Add settings when starting sbt from IDEA.
// Manual changes to this file will be lost.
if (java.lang.System.getProperty("idea.runid", "false") == "2017.2") scala.collection.Seq(
addSbtPlugin("org.jetbrains" % "sbt-structure-extractor" % "2017.2"),
addSbtPlugin("org.jetbrains" % "sbt-idea-shell" % "2017.2")
) else scala.collection.Seq.empty%