precompilation failure with Scalate 1.7.0

89 views
Skip to first unread message

Kazuhiro Sera

unread,
Jun 12, 2014, 12:15:39 PM6/12/14
to sca...@googlegroups.com
Hi all,

My framework (http://skinny-framework.org) supports Scalate precompilation by default. 

"./skinny package" command precompiles Scalate templates and creates war file. After bumping Scalatra version to 2.3.0 (and Scalate 1.7.0), we got following compilation errors even though we don't change anything.

[info] Compiling 52 Scala sources to /Users/seratch/Desktop/skinny-blank-app/build/target/scala-2.11/classes...
[error] /Users/seratch/Desktop/skinny-blank-app/build/target/scala-2.11/src_managed/main/scalate/WEB-INF/layouts/default_ssp.scala:7: $_scalate_$default_ssp is already defined as object $_scalate_$default_ssp
[error] object $_scalate_$default_ssp {
[error]        ^


Build setting:


You can reproduce the issue:

- unzip it
- ./skinny package

Best Regards,
-Kaz

Ivan Porto Carrero

unread,
Jun 12, 2014, 1:23:15 PM6/12/14
to sca...@googlegroups.com
If you downgrade the precompiler plugin does it start working then?

Kazuhiro Sera

unread,
Jun 12, 2014, 9:32:42 PM6/12/14
to sca...@googlegroups.com
Hi Ivan,

I just tried again with xsbt-scalate-generator 0.4.2. Unfortunately the issue still remains..

Regards,
-Kaz

Kazuhiro Sera

unread,
Jun 12, 2014, 10:27:24 PM6/12/14
to sca...@googlegroups.com
Hi,

Thanks to Ivan's help at IRC, I figured out the reason for this. Thanks again.

-Kaz

[10:36] <seratch> Hi, my reply in the ML is awaiting approval. https://groups.google.com/forum/#!topic/scalate/Akn5pGAe4iQ
[10:36] <casualjim> I'm not an admin there
[10:36] <casualjim> but I'm assuming even after downgrading it doesn't work?
[10:37] <seratch> Unfortunately the issue still remains.
[10:37] <seratch> tried 0.4.2
[10:47] <casualjim> seratch: where do you set up the template stuff?
[10:52] <casualjim> yes but I mean inside the code
[10:52] <casualjim> in a base trait or something
[10:59] <rossabaker> That Scalate group treats everything as spam, and I don't get notifications. :(
[10:59] <rossabaker> I told it to always allow messages.  Hopefully that works.
[11:00] <casualjim> seratch for me it packages
[11:00] <casualjim> i downloaded a skinny-blank-app
[11:00] <casualjim> and did ./sbt package
[11:00] <casualjim> i made one change:  Seq( TemplateConfig(base / "webapp" / "WEB-INF",
[11:02] <casualjim> o skinny package fails
[11:10] <seratch> I figured out the reason... scalateSettings is included twice in packagingBaseSettings. After removing scalateSettings from packagingBaseSettings, it works.
[11:10] <seratch> Sorry for bothering you.
[11:11] <casualjim> great
[11:11] <casualjim> thanks for letting me know

Kazuhiro Sera

unread,
Jun 12, 2014, 10:29:02 PM6/12/14
to sca...@googlegroups.com
@rossabaker

Now we can post here without approval. Thanks!
Reply all
Reply to author
Forward
0 new messages