nbscala icon indicating copy to clipboard operation
nbscala copied to clipboard

Option to configure the compiler when using maven.

Open rcano opened this issue 12 years ago • 5 comments

There is no way to configure the compiler that netbeans uses to pass arguments like -Yinfer-argument-types

rcano avatar Jan 05 '13 05:01 rcano

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

dcaoyuan avatar Feb 28 '13 17:02 dcaoyuan

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.

rcano avatar Feb 28 '13 18:02 rcano

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.

dcaoyuan avatar Feb 28 '13 19:02 dcaoyuan

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.

dcaoyuan avatar Mar 01 '13 17:03 dcaoyuan

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.

rcano avatar Mar 01 '13 17:03 rcano