Error in Scala compiler for project generated with sbteclipse with space in its name
Open
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 712
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Create a build.sbt with the content:
name := "name with space"
- Run
sbt eclipse
- Import the generated project as project from existing sources in Scala Eclipse IDE
- The project will have the following error (both as a Problem and in the Error Log view):
Error in Scala compiler
java.lang.IllegalStateException: The source folder location `F/firebase-scalajs/src/main/scala` is invalid.
at org.scalaide.core.internal.builder.zinc.SbtInputs$$anon$2$$anon$1$$anonfun$outputGroups$1$$anon$3.sourceDirectory(SbtInputs.scala:96)
at sbt.CompileSetup$$anon$3$$anonfun$equiv$1.apply(CompileSetup.scala:59)
at sbt.CompileSetup$$anon$3$$anonfun$equiv$1.apply(CompileSetup.scala:57)
at scala.collection.IndexedSeqOptimized$class.prefixLengthImpl(IndexedSeqOptimized.scala:38)
at scala.collection.IndexedSeqOptimized$class.forall(IndexedSeqOptimized.scala:43)
at scala.collection.mutable.ArrayOps$ofRef.forall(ArrayOps.scala:186)
at sbt.CompileSetup$$anon$3.equiv(CompileSetup.scala:57)
at sbt.CompileSetup$$anon$3.equiv(CompileSetup.scala:52)
at sbt.CompileSetup$$anon$1.sameOutput$1(CompileSetup.scala:37)
at sbt.CompileSetup$$anon$1.equiv(CompileSetup.scala:42)
at sbt.CompileSetup$$anon$1.equiv(CompileSetup.scala:33)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:153)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:68)
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:43)
at org.scalaide.util.internal.Suppress$DeprecatedWarning$$anonfun$aggressivelyCompile$1.apply(Suppress.scala:72)
at org.scalaide.util.internal.Suppress$DeprecatedWarning$$anonfun$aggressivelyCompile$1.apply(Suppress.scala:72)
at org.scalaide.core.internal.builder.zinc.EclipseSbtBuildManager.aggressiveCompile(EclipseSbtBuildManager.scala:221)
at org.scalaide.core.internal.builder.zinc.EclipseSbtBuildManager.runCompiler(EclipseSbtBuildManager.scala:146)
at org.scalaide.core.internal.builder.zinc.EclipseSbtBuildManager.update(EclipseSbtBuildManager.scala:128)
at org.scalaide.core.internal.builder.zinc.EclipseSbtBuildManager.build(EclipseSbtBuildManager.scala:88)
at org.scalaide.core.internal.project.scopes.BuildScopeUnit.build(BuildScopeUnit.scala:73)
at org.scalaide.core.internal.project.SbtScopesBuildManager$$anonfun$build$1.apply(SbtScopesBuildManager.scala:53)
at org.scalaide.core.internal.project.SbtScopesBuildManager$$anonfun$build$1.apply(SbtScopesBuildManager.scala:50)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.scalaide.core.internal.project.SbtScopesBuildManager.build(SbtScopesBuildManager.scala:50)
at org.scalaide.core.internal.project.ScalaProject.build(ScalaProject.scala:619)
at org.scalaide.core.internal.builder.ScalaBuilder.build(ScalaBuilder.scala:117)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Versions:
- sbt 0.13.9
- sbteclipse 4.0.0
- Scala IDE 4.3.0-vfinal-2015-12-01T15:55:22Z-Typesafe
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by creating a build.sbt with a project name containing spaces, running sbt eclipse, and importing the generated project into Scala IDE. Start by tracing the reported sourceDirectory failure at SbtInputs.scala:96 and inspect the generated project paths. Done means the imported project compiles without the invalid source-folder error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100