paypal / squbs-scala-seed.g8

Scala giter8 Template for Squbs
Other
20 stars 18 forks source link

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

Open crankydillo opened 6 years ago

crankydillo commented 6 years ago
$ 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 commented 6 years ago

I was just bitten by this again..