Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running gdt.sh <template> gives error #3

Open
CjS77 opened this issue May 13, 2014 · 8 comments
Open

running gdt.sh <template> gives error #3

CjS77 opened this issue May 13, 2014 · 8 comments

Comments

@CjS77
Copy link

CjS77 commented May 13, 2014

I'm possibly doing something silly, but there isn't much documentation that I can find. The @grab command in the script does seem to have pulled the necessary jar into my ~/.groovy/grapes folder but gdt doesn't run.

$gdt.sh opendolphin
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script14000116768501463512910.groovy: 1: unable to resolve class  org.svenehrke.directorytemplate.DTUtil 
 @ line 1, column 12.
   def util = new org.svenehrke.directorytemplate.DTUtil()
              ^

1 error
@svene
Copy link
Owner

svene commented May 14, 2014

I noticed this happening with the latest version of groovy (2.3.0). Are you using this? With earlier versions it works. I need to investigate if that is a bug or if I need to change the @grab.

@CjS77
Copy link
Author

CjS77 commented May 14, 2014

Hi Sven,

Thanks for the reply.

Yes, it's Groovy 2.3.0.

Interesting though, if I copy/paste the gdt.groovy script into
GroovyConsole (also 2.3.0), then it runs fine.

Regards
Cayle

On Wed, May 14, 2014 at 7:59 AM, Sven Ehrke [email protected]:

I noticed this happening with the latest version of groovy (2.3.0). Are
you using this? With earlier versions it works. I need to investigate if
that is a bug or if I need to change the @grab https://github.com/Grab.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-43045196
.

Cayle Sharrock
Director
Nimbus Technologies

@aalmiray
Copy link

Wait, so it works with Groovy 2.3.0 when running the script via groovyconsole but fails when calling the script using the groovy command?

@CjS77
Copy link
Author

CjS77 commented May 14, 2014

That is my experience.

On Wed, May 14, 2014 at 1:03 PM, Andres Almiray [email protected]:

Wait, so it works with Groovy 2.3.0 when running the script via
groovyconsole but fails when calling the script using the groovy command?


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-43067419
.

Cayle Sharrock
Director
Nimbus Technologies

@aalmiray
Copy link

looks like there's a bug in Groovy 2.3.0 and a fix is ready groovy/groovy-core@345d1d3 thanks go to @melix for pointing that out

@svene
Copy link
Owner

svene commented May 14, 2014

Cool. Thanks for finding out!

@paulk-asert
Copy link

and if you get a chance to check the fix using a snapshot build, that would be great!

@svene
Copy link
Owner

svene commented May 15, 2014

I just tried and it works again with the 2.3.1 snapshot. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants