Building the JetGroovy Plugin
Hi!
Since the current JetGroovy-Plugin in the plugin section is build with JDK6 and Selena-7274
does not work with jdk6 on the Mac. I wanted to recompile the plugin with JDK1.5.
Now I have some questions. I read the instructions at
http://www.jetbrains.net/confluence/display/GRVY/Howtobuild+plugin but they seem to be a
bit outdated. First of all it seems you need (a previous version of) the jetgroovy plugin to
compile at least one groovy-class that is part of the plugin now:
org.jetbrains.plugins.grails.actions.GenerateAction.groovy
Second problem is that the current revision in svn (10872) seems to have dependencies to
unavailable openide-apis, like com.intellij.openapi.editor.highlighter.HighlighterIterator
used by org.jetbrains.plugins.groovy.lang.editor.GroovyQuoteHandler
Where can I get these openapi-classes or which revision is the one that can be downloaded
via the plugin-centre that fits the jars from Selena-7274 or Selena-7274-dev?
Any help is appreciated.
Thanks,
Dirk
Please sign in to leave a comment.
I'm not familiar with the groovy plugin, but it's likely that some IDEA-'internal'
(in other words non-OpenAPI) classes can be found in "idea.jar".
-tt
Taras Tielkes wrote:
That's, what I thought too. But the one that came with Selena-7274 has most of them but
com/intellij/openapi/editor/highlighter/HighlighterIterator is missing. Do you know a place
where I can get a more recent version?
Dirk
Hello Dirk,
>> I'm not familiar with the groovy plugin, but it's likely that some
>> IDEA-'internal' (in other words non-OpenAPI) classes can be found in
>> "idea.jar".
>>
Hmm, in my "idea.jar" I see "com.intellij.openapi.editor.ex.HighlighterIterator"
(notice different package).
Perhaps you could try to go back a few revisions in SVN?
-tt
Taras Tielkes wrote:
>> Taras Tielkes wrote:
Hello Taras,
I tried "-r 10708" but the resulting jetgroovy plugin produces classfiles that crash the VM
when executing. So I seem to have done it wrong..
Dirk
PS: I got selena working with jdk6 (see other post) so this is not important to me unless
the previous problems I had with selena and jdk6 are still in the current build or in the
jdk6 (build 1.6.0-dp-b88-34)
FWIW, I've rolled back to r10672 on my Mac until Selena and JetGroovy get synched again. It built OK with the default JDK5, with the exception that I had to manually fix up the the stub generated for GenerateAction.groovy and tweak build.xml accordingly, an issue mentioned in the this thread:
http://www.intellij.net/forums/thread.jspa?threadID=269621&tstart=0
The basic Grails-related features (all I need) seem to work OK at this point. A random selection of later revisions, up to 10708, all had minor problems on my Mac.
Jeb...
Does debugging Grails work for you the on your build from r10672? This is the holy grail for me at the minute. (pardon the pun).
Thanks.
-Brandon
No. I think it's afflicted by the problems described in this thread:
http://www.intellij.net/forums/thread.jspa?threadID=269671&tstart=0
My choice of r10672 was slightly arbitrary. It was the most recent version that: a) predated the change to dependence on as-yet-released unreleased Selena; b) didn't give me loads of parsing/cache exceptions in #7269. I suppose I could have deleted my caches and tried again, but for now I just need to keep going on my Grails apps. I think that r10708 mentioned above is technically the last version before the dependency change.