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

10 comments

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.

0

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

0

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 ;)

0

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.

0

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?).

0

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

Eugene.

0

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.

0

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.

0

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

thanks

0

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.

0

Please sign in to leave a comment.