Plugin doesn't recognize imports of Maven imports
Hi,
This seems like a simple problem but I didn't find a solution, so I'm hopeful someone here might know what this is about.
I have a Maven-based Scala project (which happens to be a Lift project), and the Scala plugin complains about any imports and references to packages outside the project (e.g. - net.liftweb packages). This includes stuff which is imported by default (like Option, Set, etc.). The other imports are not relative imports, so that's not the issue. The project builds fine with Maven (including from IDEA), of course.
I'm using the latest stable build (0.3.1814), but with Scala 2.7.7. Can this be the problem? Is this version of the plugin only compatible with 2.8.0 ? (If so, how do I learn about this kind of changes between versions in the future - I didn't find release notes in the version history page [ http://confluence.jetbrains.net/display/SCA/Version+History ], and the plugin page doesn't give info about this either [ http://plugins.intellij.net/plugin/?&id=1347 ] ?).
Any hints would be most welcome :)
Please sign in to leave a comment.
Main problem with Scala 2.7 is scalap (decompilation of scala 2.7 class files). So it's possible that scalap for Scala 2.8 can't decompile Scala 2.7 classes, then you can't import anything of project outside. It's strictly recommended to migrate to Scala 2.8.final. Or use some older plugin version, in which scalap can recognize scala 2.7 class files.
Best regards,
Alexander Podkhalyuzin.
Thanks! I've migrated to Scala 2.8.0 and indeed this problem has been resolved.
I am having another issue though with the plugin not indicating errors such as usage of non-existing method; I need to run a build (via Maven) in order to see this type of errors.
This is unimplemented yet, because of very difficult Scala language type system.
You can enable this using Alt + Ctrl + Shift + E shortcut, or in Scala plugin settings (Settings -> Code Style -> Scala -> Other Settings)
Best regards,
Alexander Podkhalyuzin.
Got you. Thanks for everything!