Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.3.5
-
None
-
None
Description
Immediately after running `buildr idea`, I have this in my iml file:
$ head /Users/alexeagle/projects/noop/interpreter/noop-interpreter.iml
<module type="JAVA_MODULE" relativePaths="false" version="4">
<component name="ModuleRootManager"/>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes"/>
<exclude-output/>
<output-test url="file://$MODULE_DIR$/target/test-classes"/>
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/scala" isTestSource="false"/>
<sourceFolder url="file://$MODULE_DIR$/target/resources" isTestSource="false"/>
<sourceFolder url="file://$MODULE_DIR$/src/test/scala" isTestSource="true"/>
After I mark the module with the Scala facet in intellij, the .iml file starts like this:
$ head /Users/alexeagle/projects/noop/interpreter/noop-interpreter.iml
<?xml version="1.0" encoding="UTF-8"?>
<module relativePaths="false" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Scala" name="Scala">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
So it looks like the fix is pretty simple: if a buildr sub-project "is scala" (has scala sources, or I've require'd buildr/scala), it should have a FacetManager component in the iml file produced for the intellij module.
I'm marking it "Major" because I have to manually re-apply the Scala facet to all modules in the project each time I refresh my project definition from my buildfile.