I started using Play 2.1.0, and I would like to be able to use NetBeans to develop Play Java applications. I am not interested in using the IDE to run or test applications, since I can do it from the command line (not that I would mind if I also had IDE support), but I would like to be able to open and edit my project in NetBeans without getting annoying errors where they really don't exist. I am currently using NetBeans 7.3, so I first tried using the nbplay plugin , however it will not recognize all my imported or managed classes created by Play. Then I tried to import the project as an Eclipse project, as described in this and thisa question that worked better, but so far I'm going through one of the Play Java tutorials . I still get the following errors, which are really annoying to work with NetBeans:
- I get the error "Expected operand but found an error" in main.scala.html, where @content is used, although I instructed the IDE to disable HTML error checking for this file.
- In my model classes, I get errors because the classes do not declare a constructor without arguments and have public variables for constant attributes.
- Any other errors that I haven't encountered yet?
Has anyone been able to get Play 2.1.0 to work with NetBeans without any of the above errors? I could probably live with the first (although it would really annoy me), but the rest are shoppers.
source
share