How to create a Grails plugin?

Hi there,

I've just created a plugin manually (grails create-plugin erik-first-plugin), and that works fine. I try to open it in IntelliJ (create new project, grails app), but IntelliJ wants to execute the create-app script. Makes sense, I guess, but the create-app creates a lot of extra artifacts, accourding to the console. I don't want that: I just want to use IntelliJ for editing my plugin. How can I do that??

Erik

0
Avatar
Permanently deleted user

Grails plugins have no dedicated support now, you can however setup source roots by hand and add grails facet. Not a big deal really.

0

Well, I tried to do that, but every time I add a Grails facet by hand, IntelliJ will lock up (as in: 100% cpu power, not do anything anymore, and the only way to end that is to kill IntelliJ)

0
Avatar
Permanently deleted user

Erik Pragt wrote:

Well, I tried to do that, but every time I add a Grails facet by hand, IntelliJ will lock up (as in: 100% cpu power, not do anything anymore, and the only way to end that is to kill IntelliJ)

A thread dump and/or CPU snapshot would be very helpful.

0

I'll see what I can do, but since I cannot click on the 'take cpu snapshot button' (IntelliJ doesn't respond anymore), I'm not sure how much time I want to spend on this.

0
Avatar
Permanently deleted user

Hello Erik,

I'll see what I can do, but since I cannot click on the 'take cpu
snapshot button' (IntelliJ doesn't respond anymore), I'm not sure how
much time I want to spend on this.


Just take a thread dump, as described in http://support.jetbrains.com/kb/entry!default.jspa?categoryID=4&externalID=260&fromSearchPage=true

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I'm having the same problem with 7.0.3 of IDEA and a recently updated version of the jetgroovy plugin.

Is this issue going to be fixed in a future release. Its very easy to recreate:

grails create-plugin anything

Then try to import this into IDEA as a grails app.

0

请先登录再写评论。