--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/f18432e0-1e20-4bfa-a3a1-9d630b639b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/a152a250-6f0c-40e0-a911-55e3e08355b7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/4560b815-9bfa-4b0a-838d-fac8ff147f77%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/80510b35-f87d-4e36-bd07-454011aef329%40googlegroups.com.
Alright, I found the issue.The easy way to fix it is to change the import hereto be play.twirl.api.Html and play.twirl.api.HtmlFormat.
However, we can’t simply make this change as we would be breaking Play 2.3 projects. Hence, we need to add some logic to switch the imports based on the Play version.Also, it’s strange that adding these imports in the Play2 dialog doesn’t work. Hence, there may also be an issue with https://github.com/scala-ide/scala-ide-play2/blob/master/org.scala-ide.play2/src/org/scalaide/play2/PlayProject.scala#L23-L25
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/7fb319d3-6d2a-438b-8344-3aa657aa918a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/d650b984-0f34-44fa-80b5-9490b9bf97ee%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/8da34255-d928-4fcf-8a14-3dd38ca7d632%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/8756f078-71bc-40f5-b31d-aa3c4fc2358a%40googlegroups.com.
Hi Thomas,on solution (which I used) would be to simply replace the not working version of the Play plugin with the new compiled version. You can copy it to the Eclipse plugin folder and use the same name as the old one. Works for me.@Mirco - Next week I have some time to help you resolve the problem.
Am Montag, 15. Juni 2015 07:17:26 UTC+2 schrieb Thomas Hii:Hi,
After making the changes as Mirco suggested, finally got the views working. However, I could not patch SCALA IDE by uninstalling the "Play 2 support in SCALA IDE 0.4.6" and replacing it with the patched version. For some unknown reason, Eclipse keeps complaining about a newer version already exists.
As for scala ide plugin compilation, have to comment out a test case org.scalaide.play2.templateeditor.lexical.complexTokeniseTest() for successful compilation. Yet to figure out why the test failed.
Ended up just getting a clean version of Eclipse Luna, installed SCALA IDE plugin minus the Play 2 support and then install the patched version of Play 2 Support. So far so good.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/553fd626-d404-4c07-b422-596a053652b0%40googlegroups.com.
Build id: 4.1.1-vfinal-20150727-1320-Typesafe
@(tokenId: String, passwordsForm: Form[(String, String)])(implicit request: RequestHeader)
I have the same problem as well, with the latest play 2.4.3 and the latest download of the scala IDE. Takes me right back to the bad old days of java web app development in eclipse....
On Monday, June 1, 2015 at 6:11:51 AM UTC+1, Thomas Hii wrote:After upgrading to Play 2.4, the views are showing the following errors:
Multiple annotations found at this line:
- Object HtmlFormat is not a member of package play.api.templates
- type Html is not a member of package play.api.templates
Sample view file. The error is shown at the first line:
--------------------------- main.scala.html ---------------------------
@(title: String)(content: Html)
<!DOCTYPE html>---------------------------------------------------------------------------------------
<html>
<head>
@header_section(title)
</head>
<body>
@main_header()
@content
@main_footer()
</body>
</html>
I've changes Play2-> Template default imports to play.twirl.api._ and play.twirl.api.TemplateMagic._, but the problem still persists. Anyone has any idea on how to resolve this?
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/6108e75e-6d72-4131-9985-60b42995c6b0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/43c77620-da19-4fcf-9f12-5abf7a8f118e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/314dcc06-0bd5-4177-8e00-4e690679df07%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/763fe98f-fcfb-4dea-a7de-ab5c22ba55ed%40googlegroups.com.