Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Problematic dashes (and likely other special characters) in the project name #14

Open
crankydillo opened this issue Nov 9, 2017 · 1 comment

Comments

@crankydillo
Copy link

crankydillo commented Nov 9, 2017

$ sbt new paypal/squbs-scala-seed.g8
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
[info] Loading settings from idea.sbt,plugins.sbt ...
[info] Loading global plugins from /Users/notme/.sbt/1.0/plugins
[info] Set current project to squbs-g8 (in build file:/Users/notme/tmp/squbs-g8/)
project [sample]: foo-bar
appname [squbs-scala-seed]:
organization [org.squbs]:
version [0.1.0-SNAPSHOT]:
scala_version [2.12.3]:
desc [A sample squbs application in Scala]:

Template applied in ./.
$ sbt --error compile
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'
[error] /Users/notme/tmp/squbs-g8/src/main/scala/org/squbs/foo-bar/DefaultFlow.scala: Expected token LBRACE but got Token(MINUS,-,21,-)
[error] /Users/notme/tmp/squbs-g8/src/main/scala/org/squbs/foo-bar/SampleActor.scala: Expected token LBRACE but got Token(MINUS,-,21,-)
[error] /Users/notme/tmp/squbs-g8/src/main/scala/org/squbs/foo-bar/SampleHttpService.scala: Expected token LBRACE but got Token(MINUS,-,21,-)
[success] created output: /Users/notme/tmp/squbs-g8/target
java.lang.RuntimeException: errors exist
        at scala.sys.package$.error(package.scala:27)

Unless I hear something, I will submit a PR with a fix soon-ish.

@crankydillo
Copy link
Author

I was just bitten by this again..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant