Duhemm / sbt-errors-summary

sbt plugin to show a summary of compilation messages.
MIT License
201 stars 11 forks source link

The plugin don't work with IntelliJ IDEA #57

Open nartamonov opened 3 years ago

nartamonov commented 3 years ago

IntelliJ IDEA 2021.1.1 can't import project with plugin enabled:

image

Possible cause

Recently there were some efforts to improve compatibility with IDEA and other tools in #13. In particular PR #43 introduce following change: "The reporter configuration will now assume shortenPaths = false when the system property idea.run is set". However, as @jastice suggested, property idea.run is not reliable and is not always available. Instead the plugin should use property idea.managed=true. Indeed my IDEA runs sbt with the following command:

C:/Program Files/JetBrains/IntelliJ IDEA/jbr/bin/java.exe -Djline.terminal=jline.UnsupportedTerminal -Dsbt.log.noformat=true -Dfile.encoding=UTF-8 -Didea.managed=true -Dfile.encoding=UTF-8 -Didea.installation.dir=C:\Program Files\JetBrains\IntelliJ IDEA -jar C:/Users/narta/AppData/Roaming/JetBrains/IntelliJIdea2021.1/plugins/Scala/launcher/sbt-launch.jar

As you see there is no idea.run property. Instead, there is idea.managed=true.

Tested with plugin version 0.6.5.