10 Replies Last post: May 22, 2007 11:18 AM by Eugene Vigdorchik  
Steve Holmes Newbie 67 posts since
Aug 21, 2002
Currently Being Moderated

May 21, 2007 7:57 AM

Building and deploying groovy plugin (Jetgroovy)

Hey folks!

For those of you whom want to use IDEA for groovy/grails development and are too impatient to wait for any releases here are the steps that worked for me to build and deploy it:

 

1. download the source code and project files from http://svn.jetbrains.org/idea/Trunk/groovy/

2. open up project

3. Use intellij SDK for the project (you will probably have to change it from whatever it was before)

4. Add tools.jar and idea.jar to the intellij SDK

5. Use ant to generate the lexar

6. Run make (not from ant)

7. Run the deploy plugin, it will create a zip file at your base directory

8. Move the zip to your intellij plugin directory

9. Unzip

10. Restart intellij

 

Have fun!  Some things work and some don't and it may or may not be stable.  The debugger is rumored to work however...

-Steve

 

Message was edited by:

        Steve Holmes

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 4, 2007 11:22 AM in response to: Steve Holmes
Re: Building and deploying groovy plugin (Jetgroovy)

Just spreading some more rumors:)

 

ctrl-B on class and local definition references works, completion works in the same places.Find usages for groovy classes should also work. Ctrl-B from java to groovy classes is also implemented. Formatter is implemented. Grails application development is a work in progress too.

 

Eugene.

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 4, 2007 11:32 AM in response to: Eugene Vigdorchik
Re: Building and deploying groovy plugin (Jetgroovy)

Forgot to mention that unresolved classes are highlighted and a quickix to import is suggested.

Andrew Perepelytsya Novice 193 posts since
Mar 16, 2003
Currently Being Moderated
May 7, 2007 5:04 AM in response to: Eugene Vigdorchik
Re: Building and deploying groovy plugin (Jetgroovy)

Hmm,

 

SVN had uncompilable code checked in as of EOD Friday, May 4th (come on, guys..) Reverted couple revisions back, followed the instructions.

 

With the plugin installed in b6913 can't create any groovy file (groovyfile template something cannot be found error). Noticed the build had some absolute paths hardcoded, could it be the problem? (though why is it hardcoded then?).

 

Noticed the actual groovy templates (in the plugin jars) are case sensitive, while the error refers to the template in lowercase.

 

Well, so far the plugin was useless, but you didn't guarantee anything after all

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 7, 2007 7:34 PM in response to: Andrew Perepelytsya
Re: Building and deploying groovy plugin (Jetgroovy)

Andrew, I cannot reproduce your issue with file templates (and no, it does not relate to hardcoded paths)., could you please post the exception?

 

Eugene.

Andrew Perepelytsya Novice 193 posts since
Mar 16, 2003
Currently Being Moderated
May 7, 2007 7:56 PM in response to: Eugene Vigdorchik
Re: Building and deploying groovy plugin (Jetgroovy)

Eugene, hate to report this myself, but after deploying the same plugin version into IDEA once again, the behaviour changed. I don't see Groovy class/script in the New menu anymore, only Grails (?!). Not helpful, I know.

 

The good news is existing Groovy files are opening fine, reformatting works, highlighting seems to be fine.

 

Now, if you'd get imports suggested automatically by IDEA, that'd be 50% of the deal of me already personally

 

I'll keep an eye on the plugin and will report on the issues (hey, do we have JIRA project for it yet?).

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 7, 2007 8:56 PM in response to: Andrew Perepelytsya
Re: Building and deploying groovy plugin (Jetgroovy)

Andrew,

just try it and you'll see the imports are already suggested.

 

Eugene.

Andrew Perepelytsya Novice 193 posts since
Mar 16, 2003
Currently Being Moderated
May 7, 2007 9:03 PM in response to: Eugene Vigdorchik
Re: Building and deploying groovy plugin (Jetgroovy)

It behaves quite differently from other part of IDEA. First, there was no camel humps suggestions for class names.

 

However, if I fully type the class name (existing, in the library jar), it is highlighted in red, and Alt-Enter suggests the import (nice :). Though it never does it automatically, as for Java classes.

 

There are other minor issues I came across, which are better put in JIRA or separate threads.

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 8, 2007 10:00 AM in response to: Andrew Perepelytsya
Re: Building and deploying groovy plugin (Jetgroovy)

You are welcome to post bugs/feature suggestions at http://www.jetbrains.net/jira/browse/grvy The only thing that I'd like to mention is that the plugin is loosely coupled with idea internals, so we can't make everything exactly like in java.

 

Eugene.

legolas wood Newbie 16 posts since
Apr 19, 2006
Currently Being Moderated
May 22, 2007 1:17 AM in response to: Steve Holmes
Re: Building and deploying groovy plugin (Jetgroovy)

Hello every one, can some one share a build version of this plug in?

 

thanks

Eugene Vigdorchik Master 3,735 posts since
Feb 26, 2003
Currently Being Moderated
May 22, 2007 11:18 AM in response to: legolas wood
Re: Building and deploying groovy plugin (Jetgroovy)

Unfortunately right now the plugin is incompatible with last EAP of IDEA. As soon as a new EAP is published, I'll drop you a link to Jetgroovy build.

More Like This

  • Retrieving data ...