You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Alex Eagle (JIRA)" <ji...@apache.org> on 2009/11/07 18:47:32 UTC
[jira] Created: (BUILDR-337) In a Scala project, idea modules
should be created with the Scala facet
In a Scala project, idea modules should be created with the Scala facet
-----------------------------------------------------------------------
Key: BUILDR-337
URL: https://issues.apache.org/jira/browse/BUILDR-337
Project: Buildr
Issue Type: Bug
Components: IDE
Affects Versions: 1.3.5
Reporter: Alex Eagle
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (BUILDR-337) In a Scala project, idea modules
should be created with the Scala facet
Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Toulme resolved BUILDR-337.
-----------------------------------
Resolution: Won't Fix
Sorry, we're phasing idea support as there is a plugin out there that does a better job. With 1.5, idea support will be removed.
> In a Scala project, idea modules should be created with the Scala facet
> -----------------------------------------------------------------------
>
> Key: BUILDR-337
> URL: https://issues.apache.org/jira/browse/BUILDR-337
> Project: Buildr
> Issue Type: Bug
> Components: IDE
> Affects Versions: 1.3.5
> Reporter: Alex Eagle
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.