Issue with running a play-scala app on Ubuntu

119 views
Skip to first unread message

Manuel Bernhardt

unread,
May 31, 2011, 1:07:24 PM5/31/11
to play-fr...@googlegroups.com
Hi all,

two colleagues of mine on distinct machines report the same issue when
trying to run our "scala" branch on their Ubuntu machines:

everything compiles up to a first "API phase took : 0.384 s" - and
then the process seems to be frozen. On my machine (OS X 10.6) things
run fine, and the next step of the compilation goes into modules. I
checked the Java version and that does not seem to be the issue.

Is anyone experiencing the same problem? I also asked them to increase
the memory to run play scala, but without much success.

Thanks,

Manuel

Guillaume Bort

unread,
May 31, 2011, 1:09:18 PM5/31/11
to play-fr...@googlegroups.com
Is javac available somewhere? The Scala 0.9.1 module use scalac to
compile scala source files and javac to compile java source files.

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

felipeko

unread,
May 31, 2011, 1:30:25 PM5/31/11
to play-fr...@googlegroups.com
I had the same problem, then i realized it was a module (@messages). Deactived the module and now works.

Manuel Bernhardt

unread,
Jun 1, 2011, 4:23:12 AM6/1/11
to play-fr...@googlegroups.com
On Tue, May 31, 2011 at 7:09 PM, Guillaume Bort
<guillau...@gmail.com> wrote:
> Is javac available somewhere? The Scala 0.9.1 module use scalac to
> compile scala source files and javac to compile java source files.

javac is there. I tried out on a Ubuntu machine and get the same
issue. And yet the same code with the same play version and play-scala
version runs nicely on OS X. Is one part of the compilation perhaps
done with python code (so it could be the python version)?

Manuel Bernhardt

unread,
Jun 1, 2011, 4:24:13 AM6/1/11
to play-fr...@googlegroups.com
Thanks, the problem is that I can't really narrow this easily down to
a module since if I remove a module my code won't compile anymore.
Also I'm not sure it's due to a specific module since they all compile
nicely on another platform.

On Tue, May 31, 2011 at 7:30 PM, felipeko <feli...@gmail.com> wrote:
> I had the same problem, then i realized it was a module (@messages).
> Deactived the module and now works.
>

Julien Richard-Foy

unread,
Jun 1, 2011, 4:29:39 AM6/1/11
to play-fr...@googlegroups.com
I had the same issue on my Debian machine. But I did not test since a few weeks…

Erwan Loisant

unread,
Jun 1, 2011, 6:10:15 AM6/1/11
to play-fr...@googlegroups.com
I've seen it too (but I no longer see it now!)

I've narrowed it down to the point where SBT calls javac to compile a
module that includes Java code. I've seen the docviewer posing
problems.

On Wed, Jun 1, 2011 at 10:29, Julien Richard-Foy <j...@zenexity.com> wrote:
> I had the same issue on my Debian machine. But I did not test since a few weeks…
>

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Erwan Loisant

felipeko

unread,
Jun 1, 2011, 9:10:10 AM6/1/11
to play-fr...@googlegroups.com
Huljas (creator of @messages module) created this ticket:
It's possible that is the same problem..

Manuel Bernhardt

unread,
Jun 6, 2011, 6:02:43 AM6/6/11
to play-fr...@googlegroups.com
Ok, I sat down with my debugger and got to the same point as Erwan,
i.e. the problem happens when SBT invokes javac (either directly or
fork). Then I sat down with Google and this is a known (and fixed) SBT
bug: https://github.com/harrah/xsbt/issues/23

...or at least it looks really, really similar to that one (the thread
dumps look strangely alike)

==> Upgrading the SBT version to something past-0.9.7 should do the
trick, I'd thus hope to say.

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/dktXUEtNM2thR1VK.

Roch Delsalle

unread,
Mar 3, 2012, 9:28:15 PM3/3/12
to play-fr...@googlegroups.com
I have the same issue when I try to run play 1.x w/ Scala on a Debian server,
However it runs very well in local with MacOS X.

2011/6/6 Manuel Bernhardt <bernhard...@gmail.com>

Manuel Bernhardt

unread,
Mar 4, 2012, 4:29:57 AM3/4/12
to play-fr...@googlegroups.com
Hi,

wow, this is an old thread. The SBT issue is fixed on the latest
version of the play-scala plugin, so if you build that one from
scratch you shouldn't have the problem anymore

Manuel

Roch Delsalle

unread,
Mar 4, 2012, 7:05:32 AM3/4/12
to play-fr...@googlegroups.com
Hi Manuel,

Thank you thats what I did, It would be great to release scala plugin 0.9.2.

Roch

2012/3/4 Manuel Bernhardt <bernhard...@gmail.com>

Jakub Kotowski

unread,
Jun 5, 2012, 6:36:43 PM6/5/12
to play-fr...@googlegroups.com
Releasing 0.9.2 would really be nice. This bug prevents me from adding the Scala module to an existing Java project.


On Sunday, March 4, 2012 1:05:32 PM UTC+1, Roch Delsalle wrote:
Hi Manuel,

Thank you thats what I did, It would be great to release scala plugin 0.9.2.

Roch

2012/3/4 Manuel Bernhardt
Hi,


wow, this is an old thread. The SBT issue is fixed on the latest
version of the play-scala plugin, so if you build that one from
scratch you shouldn't have the problem anymore

Manuel

On Sun, Mar 4, 2012 at 3:28 AM, Roch Delsalle wrote:
> I have the same issue when I try to run play 1.x w/ Scala on a Debian
> server,
> However it runs very well in local with MacOS X.
>
>
> 2011/6/6 Manuel Bernhardt
>>
>> Ok, I sat down with my debugger and got to the same point as Erwan,
>> i.e. the problem happens when SBT invokes javac (either directly or
>> fork). Then I sat down with Google and this is a known (and fixed) SBT
>> bug: https://github.com/harrah/xsbt/issues/23
>>
>> ...or at least it looks really, really similar to that one (the thread
>> dumps look strangely alike)
>>
>> ==> Upgrading the SBT version to something past-0.9.7 should do the
>> trick, I'd thus hope to say.
>>
>>
>>
>> On Wed, Jun 1, 2011 at 3:10 PM, felipeko  wrote:
>> > Huljas (creator of @messages module) created this ticket:
>> >
>> > http://play.lighthouseapp.com/projects/74274/tickets/21-scala-compiler-gets-stuck-on-application-start-up#ticket-21-1
>> > It's possible that is the same problem..
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "play-framework" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/play-framework/-/dktXUEtNM2thR1VK.
>> > To post to this group, send email to play-framework@googlegroups.com.

>> > To unsubscribe from this group, send email to

>> > For more options, visit this group at
>> > http://groups.google.com/group/play-framework?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "play-framework" group.
>> To post to this group, send email to play-framework@googlegroups.com.

>> To unsubscribe from this group, send email to

>> For more options, visit this group at
>> http://groups.google.com/group/play-framework?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-framework@googlegroups.com.

> To unsubscribe from this group, send email to

> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages