JetBrains / sbt-idea-plugin

Develop IntelliJ plugins with Scala and SBT
Apache License 2.0
97 stars 28 forks source link

Add external plugin with IntellijPlugin.Url can throw MissingPluginRootException #47

Closed Thangiee closed 4 years ago

Thangiee commented 4 years ago

I believe the problem is at this line: https://github.com/JetBrains/sbt-idea-plugin/blob/4a49cbfcbb762ccf50c24248ce4e9e59cb2ae49a/ideaSupport/src/main/scala/org/jetbrains/sbtidea/download/LocalPluginRegistry.scala#L87

index is a HashMap[String, String], but key can be a URL type. image

image

transforming the key/url to a string seems to fix the issue: image