Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Remko Popma
I checked picocli. picocli-groovy has an AST transformation (PicocliScriptASTTransformation) but the source code of that class also does not contain the word "importPackages". So that is not it either. On Fri, Mar 4, 2022 at 10:28 PM Dirk Heinrichs wrote: > Am Freitag, dem 04.03.2022 um 23:12

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
I don't know if it will make any difference but assuming you are not using ASTBuilder, there is a little experiment you could try. I'd rename "groovy-astbuilder-4.0.0.jar" in your "lib" folder to something like "groovy-astbuilder-4.0.0.jar.bak" and see if that makes any difference. Just a total

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 23:12 +1000 schrieb Paul King: I'd rename "groovy-astbuilder-4.0.0.jar" in your "lib" folder to something like "groovy-astbuilder-4.0.0.jar.bak" and see if that makes any difference. Just a total guess but that's the only place in the Groovy codebase I could find

Re: Running groovy programs

2022-03-04 Thread Jochen Theodorou
On 12.02.22 17:03, Andriy Rysin wrote: Hi all I have a question about running/packaging groovy programs. I have a small suite of (commandline) NLP tools (https://github.com/brown-uk/nlp_uk ) that is often used by non-developers (NLP students, researches etc).

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 22:45 +1000 schrieb Paul King: Thanks, and how are you referencing Groovy? I.e. a local install or particular modules through a build? JDK version would also be useful. It's a local install from ZIP, and I simply invoke my script with it, like "/path/to/groovy -cp

Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Hi, while trying to update a set of Groovy scripts from 3.0.9 to 4.0.0, I get the following error when I run one of them: Caught: BUG! exception in phase 'semantic analysis' in source unit 'myscript.groovy' No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode BUG!

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
Hi Dirk, Is importPackages something in the script you are updating or you believe comes from Groovy? Virus-free. www.avast.com

Re: Compiling several groovy files together

2022-03-04 Thread Jochen Theodorou
On 15.02.22 05:20, Saravanan Palanichamy wrote: Hello Groovy users I am using Groovy 3.0.5 * I have a file A.groovy and B.groovy. B depends on A * I have ast transformations that add annotations to methods in A (specifically an annotation with a list expression that contains other

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 21:43 +1000 schrieb Paul King: Is importPackages something in the script you are updating or you believe comes from Groovy? No, it's not from my script, so it either comes from Groovy or some external module, but I believe it's the former. Anyway, the script has

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
Thanks, and how are you referencing Groovy? I.e. a local install or particular modules through a build? JDK version would also be useful. Thanks. Virus-free. www.avast.com