Ann: Scala Application runner plugin Follow
I made a small plugin that creates run configurations for scala objects. This might be useful to people that use for example specs or some other framework that provides the main metod in some subclass or trait.
The url for the plugin: http://plugins.intellij.net/plugin/?id=3672
Please sign in to leave a comment.
I'm curious how you check for the presence of 'main' method in a super class. We have the necessary psi for this now if you need it.
Actually I don't check it at all. :) The plugin creates the configuration to all objects regardless if they have the main or not. At least for me it is an acceptable tradeoff for the achieved gain.
I tried to play with the psi a bit but it seemed that the needed functionality was not implemented (all method names were clone etc). Nice to hear that the main can now be fetched from the psi, I sure will check that at some point.
Another concern is that you depend on scala plugin which is being actively developed, so we cannot guarantee your dependency won't break.
There is now a new version available, which supports configurations for classes annotated with @RunWith