Re: Compiler bug

2018-04-13 Thread Kerridge, Jon
Thanks for the advice, needless to say I was trying rebuild!! Jon Professor Jon Kerridge School of Computing Edinburgh Napier University Merchiston Campus Edinburgh EH10 5DT 0131 455 2777 j.kerri...@napier.ac.uk http://www.soc.napier.ac.uk/~cs10/

Re: Compiler bug

2018-04-13 Thread MG
To be clear: You have to repeatedly execute "build" - not "rebuild". While it might seem logical that, if anything, "rebuild" fixes the problem, for my that was never the case: "rebuild" just took a long time, then failed with the same error. In my case, the problem always stays away for some

Re: Compiler bug

2018-04-13 Thread Kerridge, Jon
Hi, Following mg's advice have compleltly built the code again from scratch. I had installed 2.4.10 and the code that was failing before is now working and I was able to run it. However I did not have to do build more than once for each component. The build in total requires the compilation

Newify classNamePattern support: Non-static inner classes ?

2018-04-13 Thread MG
@Newify classNamePattern support (https://issues.apache.org/jira/browse/GROOVY-8490) looks to be working (I am using maps for lookup everywhere and have added globally available types explicitely in NewifyASTTransformation), except for non-static inner classes. The test below fails with:

Re: Compiler bug

2018-04-13 Thread Paul King
I tried this script: class QueensBase { int N = 2 double doFitness(List board) { List leftDiagonal = new ArrayList(2*N) List rightDiagonal = new ArrayList(2*N) double sum = 0.0D for ( i in 1 .. 2*N) { leftDiagonal[i] = 0 rightDiagonal[i] = 0 } for

Re: Compiler bug

2018-04-13 Thread Paul King
Not sure what happened to the formatting - here it is again: class QueensBase { int N = 2 double doFitness(List board) { List leftDiagonal = new ArrayList(2*N) List rightDiagonal = new ArrayList(2*N) double sum = 0.0D for ( i in 1 .. 2*N) { leftDiagonal[i] = 0

Re: Compiler bug

2018-04-13 Thread Kerridge, Jon
Daniel, Thanks for getting back to me so quickly. I have converted to groovy2.4.15 and the same error occurs. I am running under Intellij IDE and had downloaded the sdk bundle. Jon Professor Jon Kerridge School of Computing Edinburgh Napier University Merchiston Campus Edinburgh EH10

[VOTE] Release Apache Groovy 3.0.0-alpha-2

2018-04-13 Thread Daniel.Sun
Dear development community, I am happy to start the VOTE thread for a Groovy 3.0.0-alpha-2 release! This release includes 40 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123=12342254 Tag:

Re: Compiler bug

2018-04-13 Thread Kerridge, Jon
Hi, Thanks for the advice, will still try to see if I can find the point at which the code worked and is no longer working but will bear in mind your comment. It looks as though moving to Intellij mught not have been the shangrilar it was made out to be!! Jon Professor Jon Kerridge

Re: Compiler bug

2018-04-13 Thread MG
Hi John, I have bee using IntelliJ for years and have had a non-deterministic build problem for about the same time span, where the Groovy compiler throws on my code overriding a method in a child class with an incompatible return type. Only my code is correct, and the problem dissappears

Re: Compiler bug

2018-04-13 Thread MG
PS: You can also try to invalidate IntelliJ's caches (File \ Inavlidate Caches) to see if that helps. That's what I did when I first encountered my problem, but that takes quite some time (and looking back I cannot be sure if it did not just work by accident, by basically waiting some time

Re: Compiler bug

2018-04-13 Thread Kerridge, Jon
Hi, This becomes problematic as the containing class is part of a much larger system. I am building a a Groovy Parallel Patterns Library and this is just one of the demos of the library I am working on. I have had the code working in an Eclipse envrionment with an earlier release of 2.4