Eclipse plugin v2 for groovy

View: New views
3 Messages — Rating Filter:   Alert me  

Eclipse plugin v2 for groovy

by Guillaume Jeudy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi guys,

 

Does anyone know the level of stability of the latest v2 eclipse plugin release with eclipse 3.5?

 

- I’m having issues when sometimes I right-click on a groovy script the run-as submenu does not pop-up and I get a NullPointerException from Eclipse IDE. I then have to go in the top-menu and manually create a groovy script run config to run it.

- The option switch to groovy 1.6 doesn’t work, after eclipse IDE restart it still shows current version used is 1.7.

- I sometimes get weird behavior when running groovy scripts in groovyconsole (with groovy 1.6.5) vs eclipseide (with groovy 1.7 beta2)

 

This script works fine in the earlier (groovyconsole) but throws an exception in the later (eclipse ide plugin).

 

import groovy.net.xmlrpc.XMLRPCServerProxy as Proxy;

 

def remote = new Proxy('http://jira.codehaus.org/rpc/xmlrpc')

 

def loginToken = remote.jira1.login('gjeudy','mypass')

def projects = remote.jira1.getProjectsNoSchemes(loginToken)

def groovy = projects.find{ it.name == 'groovy' }

println groovy.key

println groovy.description

println groovy.lead

 

Caught: groovy.lang.MissingPropertyException: No such property: jira1 for class: groovy.net.xmlrpc.XMLRPCServerProxy

       at listing1218b.run(listing1218b.groovy:6)

 

Best regards,

Guillaume Jeudy – Java developer
Java and Open Source Application Development – Montreal Solutions Centre
1801, McGill College Avenue, Suite 1100
Montreal, QC, H3A 2N4

gjeudy@...
W: +1-514-840-6329           F: +1-514-840-6241

 



This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.

 

 

Ce courrier électronique (en incluant n'importe quels attachements) peut contenir des renseignements

qui sont donnés le privilège, confidentiel, et-ou protégés autrement de la divulgation à quelqu'un autre

que son destinataire (s) voulu. N'importe quelle diffusion ou utilisation de ce courrier électronique

électronique ou de ses contenus (en incluant n'importe quels attachements) par les personnes autre que

le destinataire (s) voulu sont sévèrement interdits. Si vous avez reçu ce message par erreur, notifiez-nous

s'il vous plaît immédiatement par le courrier électronique de réponse pour que nous puissions corriger nos

dossiers intérieurs. Effacez s'il vous plaît alors le message original (en incluant n'importe quels attachements)

dans son ensemble. Merci.


Re: Eclipse plugin v2 for groovy

by Andy Clement :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, it is at a milestone release right now (m1) and not final.

> - I’m having issues when sometimes I right-click on a groovy script the
> run-as submenu does not pop-up and I get a NullPointerException from Eclipse
> IDE. I then have to go in the top-menu and manually create a groovy script
> run config to run it.

Raise the NPE as a bug in greclipse please:
http://jira.codehaus.org/browse/GRECLIPSE

> - The option switch to groovy 1.6 doesn’t work, after eclipse IDE restart it
> still shows current version used is 1.7.

Yes, this is a known issue - did you look through the new and
noteworthy for M1 - where it describes how you have to make the switch
right now?
http://docs.codehaus.org/pages/viewpage.action?pageId=133464433

> - I sometimes get weird behavior when running groovy scripts in
> groovyconsole (with groovy 1.6.5) vs eclipseide (with groovy 1.7 beta2)

raise some bugs and we can explore whatever you are seeing.  The
script support is, I'd say, in particular need of more testing/work.

For your problematic script, are you RunAs>Groovy script or
RunAs>groovy application?

So, as I say, please raise some jiras and we can look into your problems.

cheers
Andy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: Eclipse plugin v2 for groovy

by Guillaume Jeudy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I raised a JIRA: http://jira.codehaus.org/browse/GRECLIPSE-476 for the
menu bug.

For the problematic script I'm running as a groovy script. However I
need to remove groovy compiler from the equation, I will retest with
groovy 1.6 in eclipse before putting the blame on the plugin per se.

Thanks!

Guillaume Jeudy - Java developer
Java and Open Source Application Development - Montreal Solutions Centre
1801, McGill College Avenue, Suite 1100
Montreal, QC, H3A 2N4
gjeudy@...
W: +1-514-840-6329           F: +1-514-840-6241
 
-----Original Message-----
From: Andy Clement [mailto:andrew.clement@...]
Sent: Wednesday, October 28, 2009 5:08 PM
To: user@...
Subject: Re: [groovy-user] Eclipse plugin v2 for groovy

Well, it is at a milestone release right now (m1) and not final.

> - I'm having issues when sometimes I right-click on a groovy script
the
> run-as submenu does not pop-up and I get a NullPointerException from
Eclipse
> IDE. I then have to go in the top-menu and manually create a groovy
script
> run config to run it.

Raise the NPE as a bug in greclipse please:
http://jira.codehaus.org/browse/GRECLIPSE

> - The option switch to groovy 1.6 doesn't work, after eclipse IDE
restart it
> still shows current version used is 1.7.

Yes, this is a known issue - did you look through the new and
noteworthy for M1 - where it describes how you have to make the switch
right now?
http://docs.codehaus.org/pages/viewpage.action?pageId=133464433

> - I sometimes get weird behavior when running groovy scripts in
> groovyconsole (with groovy 1.6.5) vs eclipseide (with groovy 1.7
beta2)

raise some bugs and we can explore whatever you are seeing.  The
script support is, I'd say, in particular need of more testing/work.

For your problematic script, are you RunAs>Groovy script or
RunAs>groovy application?

So, as I say, please raise some jiras and we can look into your
problems.

cheers
Andy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.

 
 
Ce courrier électronique (en incluant n'importe quels attachements) peut contenir des renseignements
qui sont donnés le privilège, confidentiel, et-ou protégés autrement de la divulgation à quelqu'un autre
que son destinataire (s) voulu. N'importe quelle diffusion ou utilisation de ce courrier électronique
électronique ou de ses contenus (en incluant n'importe quels attachements) par les personnes autre que
le destinataire (s) voulu sont sévèrement interdits. Si vous avez reçu ce message par erreur, notifiez-nous
s'il vous plaît immédiatement par le courrier électronique de réponse pour que nous puissions corriger nos
dossiers intérieurs. Effacez s'il vous plaît alors le message original (en incluant n'importe quels attachements)
dans son ensemble. Merci.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email