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

sbt doesn't like colons in project directory names #1038

Closed
ritschwumm opened this issue Dec 12, 2013 · 2 comments
Closed

sbt doesn't like colons in project directory names #1038

ritschwumm opened this issue Dec 12, 2013 · 2 comments

Comments

@ritschwumm
Copy link

when the directory of a project contains a colon, sbt fails to start:

[info] Done updating.
[info] Compiling 1 Scala source to /home/<censored>/http4s:http4s/project/target/scala-2.10/sbt-0.13/classes...
/home/<censored>/http4s:http4s/build.sbt:1: error: not found: object Http4sDependencies
import Http4sDependencies._
       ^
sbt.compiler.EvalException: Type error in expression
    at sbt.compiler.Eval.checkError(Eval.scala:343)
    at sbt.compiler.Eval.compileAndLoad(Eval.scala:165)
    at sbt.compiler.Eval.evalCommon(Eval.scala:135)
    at sbt.compiler.Eval.evalDefinitions(Eval.scala:109)
    at sbt.EvaluateConfigurations$.evaluateDefinitions(EvaluateConfigurations.scala:125)
    at sbt.EvaluateConfigurations$.evaluateSbtFile(EvaluateConfigurations.scala:48)
    at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:502)
@harrah
Copy link
Member

harrah commented Dec 14, 2013

At best I see sbt issuing a better error message. Colons are used for separating Java classpaths on unix.

@ritschwumm
Copy link
Author

hm, good point. same problem with semicolons on windows, i guess.

@harrah harrah closed this as completed in ca4b22e Dec 18, 2013
harrah added a commit that referenced this issue Mar 21, 2014
… separator. Fixes #1038.

This is an attempt to provide a decent error message in some cases.  However, paths that include
the Java path separator character are just fundamentally problematic and aren't always going to
be cleanly detected.
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

2 participants