nbscala
nbscala copied to clipboard
Option to configure the compiler when using maven.
There is no way to configure the compiler that netbeans uses to pass arguments like -Yinfer-argument-types
Please see documentation of scala maven plugin, for the newest version, here: http://davidb.github.com/scala-maven-plugin/compile-mojo.html, for old version, http://scala-tools.org/mvnsites/maven-scala-plugin/compile-mojo.html
I don't think that is it. If I add the compile option -Yinfer-argument-types in the pom defintion, maven will compile it fine, but netbeans will say there is an error everywhere I'm using the feature.
Got it.
If so, I need to extract the compile options from maven's pom.xml file, the work is not so straightforward and easy to implemented. I'll keep this issue opening and may need someone else to put hand on it.
For some compile options, I can add them as default, this is a quick fix. Which options do you think could be candidates? I'm going to release a new version very soon.
For better solution, I may need to write a compile options configuration panel, so the user can choose which option could be enabled.
For long-time solution, there should be an approach to extract the compile options from varies kind of projects, ant-based, maven-base, sbt-base etc.
Actually, I think that due to the complexity of extracting this properties from the ant file, or the pom file, or the sbt settings, I think I would prefer a simple panel, maybe even at the project properties panel. Currently, I have a fork of the project where I pull your changes periodically where I added the compiler settings I needed.