GRAILS Facet removed in 9.0BETA but not available to add

Hello

I open a 8.1.3 GRAILS app in 9.0BETA. It was convert to a JAVA_MODULE for no apparient reason as it was working fine under 8.1.3.(This is on a MacBook Pro 10.6, java 1.6)


There appears to be no way to add GRAILS back in. No GRAILS facets are presented to add GRAILS back in. If I try to run the app 9.0 tells me there is no GRAILS SDK installed (there is, GRAILS 1.1.1 and there is an ENV variable set at login for GRAILS_HOME). And I can not find a setting in the Preferences to add a GRAILS SDK as I have checked all the categories.


So I am stuck going back to 8.1.3. I expect bugs of course... however I have to work on the projects I have to work on. Those are currently GRAILS.

Jeff.

10 comments
Comment actions Permalink

One more item. I see you can create a new project from existing GRAILS sources. But this is not intuitive at all. One would expect to be able to open up an 8.1.3 GRAILS project and have it work as a GRAILS application

0
Comment actions Permalink

I also don't see any GRAILS facets in 9.0 BETA (just installed 92.81).  I have a project that I'm trying to work on as well but can't because of this.

Is this a known issue or is there something I can do to enable Grails Facets???

0
Comment actions Permalink

Hello Rishi,

I also don't see any GRAILS facets in 9.0 BETA (just installed 92.81).
I have a project that I'm trying to work on as well but can't because
of this.

Is this a known issue or is there something I can do to enable Grails
Facets???


IDEA 9 doesn't have a separate facet for Grails because it's not required
any more. Please see http://blogs.jetbrains.com/idea/2009/09/groovy-related-configuration-changes/
for more information on the new way to configure Grails projects.

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


0
Comment actions Permalink

Unfortunately that blog post was not helpful at all.  I did an "import Grails application from existing source" from an existing project in a SVN repo.  It brought the project in but I still can't run it as a Grails app.  There is no way for me to create a run/debug configuration because it doesn't show my module in the drop down.

0
Comment actions Permalink

Does your module have correct Grails library in its dependencies? Does
it have the grails-app/... structure? Is Grails View enabled for your
project?

0
Comment actions Permalink

It definitely has the correct grails-app/ structure.  It also appears to have the correct libraries; etc.  I can run/package my project fine from the command line -- just can't do anything via IDE.

I'm not sure about the "grails view" enablement.  How do I find that out?  When I created the project/module I did it via the "Import Existing Grails ... "  I would assume that should enable a Grails view, no?  I've looked across all the menus but nothing that comes across as a Grails "View".

I even tried creating a Grails Application from scratch.  It doesn't do anything more than create a project with a src/ folder.  None of the grails-app/ structure is there; that doesn't seem right.  If it is, I don't really understand what the point of it is.

Any light you can shed is greatly appreciated.

0
Comment actions Permalink

Looks like your module hasn't Grails library, or has one, which doesn't point to a correct Grails SDK location. Please check this. Another variant could be that JDK isn't set up.

0
Comment actions Permalink

When it asked me for the Grails SDK location I pointed it to the correct path of my Grails 1.1.1 installation.  Where can I go to view/change/correct this?

0
Comment actions Permalink

In your module dependencies, there should be a library called Grails-1.1.1. Click 'Edit' for it. It should contain everything under Grails' lib and dist directories.

0
Comment actions Permalink

Ok, we're in business.

I created a Global Library called Grails-1.1.1 with the 'lib' and 'dist' folders attached under Classes.  I also included the 'src' folder for Sources and 'doc' folder for Documentation (in case I need to step through the Grails code when debugging).

I then added that library to the module dependencies and it looks like IDEA now recognizes the module as a Grails Application!

Thanks a lot for your help with this.

0

Please sign in to leave a comment.