ultimate edition play 2 plugin - using play to compile

Hi because stuck with previous reported stack trace I thought i'd give ultimate edition a go and try the play 2 support.
By default it uses play to do compilation. But the error messages are not parsed for line numbers - so I have to go and find the files and errors by hand.
Is there something that will fix this problem?
And is this the right place to discuss the play2 plugin?
Thanks
Tim

6 comments
Comment actions Permalink

Yes, It's right place to discuss problems. (to report bugs it's better to use bugtracker: http://youtrack.jetbrains.com/issues/SCL)
Your described problem is serious usability problem, we will take a look for this today.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Hi - not sure if you've done anything on this one yet. But example of what I see in Messages Make window - not being parsed. This with latest plugins as of 2 hours ago


Play 2 compiler
:  C:\dropbox\Dropbox\projects\coding\tuw-play\app\com\optrak\tuw\model\Parties.scala:276: type mismatch;
  found   : A
  required: com.optrak.tuw.model.Communications.CommunicationRule
       added <- comRepo.update(found, found.copy(communicationRules = found.communicationRules + goodRule))
                                                                                                 ^
C:\dropbox\Dropbox\projects\coding\tuw-play\app\com\optrak\tuw\model\Parties.scala:274: type mismatch;
  found   : A(in method maImplicit) => scalaz.Validation[scalaz.NonEmptyList[com.optrak.scalautil.ScalazBits.ErrorReport],Nothing]
  required: (some other)A(in method maImplicit) => Any
       goodRule <- ensureMechanisms(found, rule)
                ^
C:\dropbox\Dropbox\projects\coding\tuw-play\app\com\optrak\tuw\model\Parties.scala:283: type mismatch;
  found   : A
  required: com.optrak.tuw.model.Communications.CommunicationRule
       added <- comRepo.update(found, found.copy(communicationRules = (found.communicationRules - oldRule) + goodRule))
                                                                                                             ^
C:\dropbox\Dropbox\projects\coding\tuw-play\app\com\optrak\tuw\model\Parties.scala:281: type mismatch;
  found   : A(in method maImplicit) => scalaz.Validation[scalaz.NonEmptyList[com.optrak.scalautil.ScalazBits.ErrorReport],Nothing]
  required: (some other)A(in method maImplicit) => Any
       goodRule <- ensureMechanisms(found, newRule)
                ^
C:\dropbox\Dropbox\projects\coding\tuw-play\app\com\optrak\tuw\persist\CommunicationsPersist.scala:55: not enough arguments for constructor CommunicationRule: (name: String, from: Option[com.optrak.tuw.model.Parties.Party], fromDate: Option[org.joda.time.DateTime], toDate: Option[org.joda.time.DateTime], purpose: com.optrak.tuw.model.Communications.CommunicationPurpose, period: Option[org.joda.time.Period], beforeAfter: com.optrak.tuw.model.Communications.BeforeAfter.Value, mechanisms: Set[com.optrak.tuw.model.Communications.CommunicationMechanism], mechanism: com.optrak.tuw.model.Communications.CommunicationMechanism)com.optrak.tuw.model.Communications.CommunicationRule.
Unspecified value parameter mechanism.
       new CommunicationRule(name, from, fromDate, toDate, purpose, ActivitiesPersist.parseOptPeriod(period), BeforeAfter.get(beforeAfter), defaultMechanism)
           ^
5 errors found
(compile:compile) Compilation failed
Total time: 9 s, completed 27-Dec-2012 17:17:53

0
Comment actions Permalink

This is almost done, but It's not pushed to the repo yet. I hope it will be implemented in next version this Saturday.
Last version contains fix for the Critical problem with debugger.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Hi great.
In case you're not aware. It sometimes works properly and sometimes doesn't. Right now after a lot of recompilations where it failed it's suddenly started working - literally in last 5 minutes.

0
Comment actions Permalink

Not sure if this is other thing you meant, but I have lots of unit tests with specs2. If I try to run from the Run/Debug it will try to make via play - but play will only make the main sources not the test sources - unless you invoke play test or play test-only - so somehow it needs to know that Specs2 tests need to force recompilation

0
Comment actions Permalink

Ok, I just added an issue: http://youtrack.jetbrains.com/issue/SCL-5112
It seems we just missed test compilation (actually now make implemented in such way that it dekegates to "play compile").

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.