Using Play Framework 2.1.0 with NetBeans

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.

+5
source share
1 answer

Remember that Java hints can be turned on or off in Tools → Options → Editor → Tips → Choose Java Language.

NetBeans now has built-in support for the Play 2.3.x platform and higher: http://nbpleasureplugin.com/documentation/installation.html The command line is not needed at all.

The most important features:

  • Create, run, debug, and test your application directly in the IDE
  • Support for route files (syntax coloring, syntax Error highlighting, autocomplete, code navigation, display of implementation code (without going to the source file), a hint for creating a method when it does not exist, formatting, character appearance)
  • Scala ( , , , , ( ), , ) application.conf( , , , )
  • ( Maven build.sbt)
  • 2 (jacoco scoverage)
  • SBT
  • ( , , , ..) * 2.3.x

. .

, : Play Framework 2.0 netbeans

-1

All Articles