Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-338

For Scala project, Idea module has incorrect path to Scala library jar

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.4.5
    • IDE
    • None

    Description

      After running `buildr idea`, I get a module file that includes the scala-library.jar and scala-compiler.jar. I didn't list those as dependencies of my project, but I do require buildr/scala, so it makes sense that these are automatically added to the dependency list internally in buildr in order to compile my project.

      But, in my resulting iml file, the dependencies look like this:
      <orderEntry type="module-library">
      <library>
      <CLASSES>
      <root url="jar://$MODULE_DIR$//Users/alexeagle/projects/scala-2.7.5.final/lib/scala-library.jar!/" /
      >
      </CLASSES>
      <JAVADOC />
      <SOURCES>
      <root url="jar://$MODULE_DIR$//Users/alexeagle/projects/scala-2.7.5.final/lib/scala-library-sources.
      jar!/" />
      </SOURCES>
      </library>
      </orderEntry>
      <orderEntry type="module-library">
      <library>
      <CLASSES>
      <root url="jar://$MODULE_DIR$//Users/alexeagle/projects/scala-2.7.5.final/lib/scala-compiler.jar!/"
      />
      </CLASSES>
      <JAVADOC />
      <SOURCES>
      <root url="jar://$MODULE_DIR$//Users/alexeagle/projects/scala-2.7.5.final/lib/scala-compiler-sources
      .jar!/" />
      </SOURCES>
      </library>
      </orderEntry>

      They have an absolute path based on my $SCALA_HOME, but these are incorrectly getting a prefix of $MODULE_DIR$.

      I'm marking it as major because I have to fix this manually every time I regenerate my project from a buildfile.

      Attachments

        Activity

          People

            pdonald Peter Donald
            alexeagle Alex Eagle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment