Create project error

25 views
Skip to first unread message

dustinsand

unread,
Aug 21, 2011, 4:39:23 PM8/21/11
to Lifty

Executing 'lifty create project-blank'

fails with this error:
at xsbt.boot.Boot.main(Boot.scala)
[error] org.fusesource.scalate.TemplateException: Could not load
template: org.fusesource.scalate.TemplateException: Compilation
failed:
[error] /private/tmp/foo/source/_temp_Project.ssp.scala:2: error:
identifier expected but 'private' found.
[error] package private.tmp.foo
[error] ^
[error] one error found


Versions used to create this error:
Scala 2.9.0
Lift 2.3-RC3
Lifty 1.6.1
sbt 0.7.7



Here is the console output in case it helps:
Project does not exist, create new project? (y/N/s) y
Name: foo
Organization: bar
Version [1.0]:
Scala version [2.9.0]:
sbt version [0.7.7]:
Getting net.java.dev.jna jna 3.2.3 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/59ms)
Getting Scala 2.7.7 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
2 artifacts copied, 0 already retrieved (9911kB/107ms)
Getting org.scala-tools.sbt sbt_2.7.7 0.7.7 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
17 artifacts copied, 0 already retrieved (4379kB/149ms)
[success] Successfully initialized directory structure.
Getting Scala 2.9.0 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (20442kB/552ms)
[info] Building project foo 1.0 against Scala 2.9.0
[info] using sbt.DefaultProject with sbt 0.7.7 and Scala 2.7.7
>
> lifty create project-blank
[info] :: retrieving :: org.scala-tools.sbt#retrieve-processor [sync]
[info] confs: [default]
[info] 6 artifacts copied, 0 already retrieved (1150kB/42ms)
[info] mainpack [bar]:
[info] liftversion [2.3-RC3]: 2.3
org.fusesource.scalate.TemplateException: Compilation failed:
/private/tmp/foo/source/_temp_Project.ssp.scala:2: error: identifier
expected but 'private' found.
package private.tmp.foo
^
one error found


Below is the first few lines of the genenerated file with the compiler
error.
/* NOTE this file is autogenerated by Scalate : see http://scalate.fusesource.org/
*/
package private.tmp.foo

object $_scalate_$_temp_Project_ssp{


Anyone know why I am getting this compiler error?

Thanks,
Dustin

dustinsand

unread,
Aug 25, 2011, 5:32:45 PM8/25/11
to Lifty
Sorry, the question was poorly worded.

What I meant to ask is:
1) Is my configuration incorrect causing the template error?
2) If configuration is correct, how do I fix this issue?

Thanks,
Dustin
> /* NOTE this file is autogenerated by Scalate : seehttp://scalate.fusesource.org/

Mads Hartmann Jensen

unread,
Aug 26, 2011, 7:02:16 AM8/26/11
to li...@googlegroups.com
Hi Dustin,

Sorry for the late reply. I just tried to create a project with the exact same information as
you did and it worked.

what OS are you using?

dustinsand

unread,
Aug 27, 2011, 9:52:01 AM8/27/11
to Lifty
Hi Mads,

OS X - 10.6

It very well could be user error. I'll try again and post my
findings.

dustinsand

unread,
Aug 28, 2011, 11:55:14 AM8/28/11
to Lifty
Mads,

In the original post I was using SBT 0.10, but telling SBT to use
0.7.7 for the new project. This combination did not work.

This time I used SBT 0.7.7 and told it to use 0.7.7 for the new
project and success. Project created.

Summary of configuration which worked for me:

OS X 10.7
Scala 2.8.1
Lift 2.3-RC3
Lifty 1.6.1
sbt 0.7.7

Regards,
Dustin

Mads Hartmann

unread,
Aug 28, 2011, 11:56:53 AM8/28/11
to li...@googlegroups.com
Interesting. I'll make a note of it :) 

Happy you got it working. 
Reply all
Reply to author
Forward
0 new messages