Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread Adrien Guichard
Le dim. 14 avr. 2024 à 22:27, Adrien Guichard a écrit : > > Le dim. 14 avr. 2024 à 17:44, MG a écrit : > > > > Just a long shot, but have you checked if this error might be due to a > > broken build or similar, i.e. class files being modified in parallel or > > source files having been modified w

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread Adrien Guichard
Le dim. 14 avr. 2024 à 17:44, MG a écrit : > > Just a long shot, but have you checked if this error might be due to a > broken build or similar, i.e. class files being modified in parallel or > source files having been modified while the build process was running ? I limit the number of spanning

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread MG
Just a long shot, but have you checked if this error might be due to a broken build or similar, i.e. class files being modified in parallel or source files having been modified while the build process was running ? We see "ArrayIndexOutOfBoundsException: size==0" exceptions from time to time dur

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread Adrien Guichard
Le dim. 14 avr. 2024 à 12:18, Paul King a écrit : > > Can you give us more of the stack trace where Groovy is failing for > the "size==0" error? java.lang.ArrayIndexOutOfBoundsException: size==0 at org.codehaus.groovy.classgen.asm.OperandStack.ensureStackNotEmpty(OperandStack.java:279) at org.co

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread Paul King
Can you give us more of the stack trace where Groovy is failing for the "size==0" error? I would in general expect very few changes needed between 3 and 4. Groovy's built-in AST transforms had almost no changes. Cheers, Paul. On Sun, Apr 14, 2024 at 11:31 AM Adrien Guichard wrote: > > Is there

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-13 Thread Adrien Guichard
Le dim. 14 avr. 2024 à 03:32, Adrien Guichard a écrit : > > Is there any guideline to port AST Transformations for Groovy 4.0 ? > > I am porting Taack-UI to Groovy 4.0, and I am stuck with errors like: > [. . . ] > General error during instruction selection: size==0 > [. . .] > > > At the moment

AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-13 Thread Adrien Guichard
Is there any guideline to port AST Transformations for Groovy 4.0 ? I am porting Taack-UI to Groovy 4.0, and I am stuck with errors like: [. . . ] General error during instruction selection: size==0 [. . .] At the moment I just added casts at ReturnStatements. (See https://github.com/Taack/infr