[ 
http://jira.codehaus.org/browse/MGROOVY-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140652#action_140652
 ] 

Jochen Hinrichsen commented on MGROOVY-151:
-------------------------------------------

I'm running into the same problem:

    Unexpected node: Node[37:1,27,EXPR]

even with a fresh svn co, mvn install on rc3-SNAPSHOT.

I have a bunch of groovy files, both regular classes (public class A in 
A.groovy) and script snippets (println "Hello world"). Up to now i did not care 
about the difference, groovy just runs both types.

Does the error mean i have to rewrite my 77 scripts with 8000+ lines to make 
them all proper classes?

> StubGenerator fails on groovy-script
> ------------------------------------
>
>                 Key: MGROOVY-151
>                 URL: http://jira.codehaus.org/browse/MGROOVY-151
>             Project: GMaven
>          Issue Type: Bug
>          Components: stub generation
>            Reporter: Bart Robeyns
>            Assignee: Jason Dillon
>            Priority: Minor
>             Fix For: 1.0-rc-3
>
>         Attachments: jointissue.zip
>
>
> Groovy files that contain code outside of a class definition result in  
> grammar-errors. Errors that I've witnessed include
> Unknown AST: VARIABLE_DEF
> Unknown AST: EXPR
> Unknown AST: ASSERT
> The attached file contains a minimalistic maven project that reproduces the 
> error when running
> mvn compile

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to