0

Netbeans 8 works quite well with Grails. I can click New Project to create a new Grails project. Netbeans 8 can show the project with Domain, Controller, Views folders on the left nicely. I can even debug the project with breakpoint. Netbeans 8 only works well with Grails 2. But at lease it can show the project folder structures nicely with newer versions of Grails like 4 and 5.

Netbeans 14 is missing all of these with/without the default Groovy plugin. It can't even open a simple Helloworld Grails project I create using the grails create-app helloworld command.

I googled Netbeans and Grails but the posts were quite outdated from many years ago. They said to use the Netbeans 8 Groovy plugin.

Is there any updated way to setup Netbeans 14 to work with Grails?

I attached 2 pictures. One is how it looks with 14. The other is how it looks with 8.

Netbeans 8

Netbeans 14

tom6502
  • 180
  • 7
  • You're using an IDE released 11 days ago. There might still be some issues. Why do you need v14? – stdunbar Jun 20 '22 at 20:20
  • I have tried 9 to 13. None of them works with Grails. I am hoping 14 will work with Grails but it doesn't. I am still using 8 and it is very old. – tom6502 Jun 20 '22 at 20:27

1 Answers1

2

Unfortunately, I think the answer to your question is that Netbeans 14 does not support Grails. It's tough to prove a negative, but there is very strong circumstantial evidence of that being the case:

Notes:

  • For some releases since NetBeans 8.2 it has been possible to add Grails support using the old 8.2 plugin (e.g. this answer), but the approaches were brittle, and did not offer any functionality beyond that available in NetBeans 8.2. I suppose you could try a similar workaround to get Grails running on NetBeans 14, as described in SO answers for other NetBeans releases, but stability might be an issue.
  • For what it's worth, Intellij IDEA provides a Grails plugin, though I haven't tried it.
  • Finally, Grails not working in NetBeans 14 should not be viewed as a NetBeans issue. Instead, it's a third-party plugin issue, and as far as I know there has been no development on the 8.2 plugin you are currently using for years. (That said, it would be helpful if the NetBeans documentation for each release formally stated any new functionality, and any functionality that was no longer supported, or no longer worked.)
skomisa
  • 16,436
  • 7
  • 61
  • 102
  • The IntelliJ Grails plugin is excellent and I can recommend it without reservation if moving to that IDE is an option for you. It really only lacks a couple features (like GSP support), but even those features are available if you pay for their "Ultimate" edition IDE. – Ari Bustamante Mar 02 '23 at 20:10