Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Scala compiler for project generated with sbteclipse with space in its name #313

Open
thSoft opened this issue Mar 12, 2016 · 0 comments

Comments

@thSoft
Copy link

thSoft commented Mar 12, 2016

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant