Cédric Champeau | 4 Oct 2011 17:42
Picon
Gravatar

[groovy-dev] BSFTest, CacheBSFTest and MBeanTest

Hi,

I'm trying to setup an IntelliJ IDEA project to build groovy from 
sources. I'm almost done, but I have problems compiling some classes (I 
can safely ignore them, whatever) :

JavaSourceCodehausPackagesSuite
JavaSourceGroovyPackagesNonSecuritySuite

They reference classes named org.codehaus.groovy.bsf.BSFTest, 
org.codehaus.groovy.bsf.CacheBSFTest and groovy.util.MBeanTest. However, 
I can't find them in the source tree. Is it a known issue ? Maybe those 
test classes have been removed recently, but test suites have not been 
updated.

Cédric

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

    http://xircles.codehaus.org/manage_email

Cédric Champeau | 4 Oct 2011 17:43
Picon
Gravatar

[groovy-dev] BSFTest, CacheBSFTest and MBeanTest

Hi,

I'm trying to setup an IntelliJ IDEA project to build groovy from 
sources. I'm almost done, but I have problems compiling some classes (I 
can safely ignore them, whatever) :

JavaSourceCodehausPackagesSuite
JavaSourceGroovyPackagesNonSecuritySuite

They reference classes named org.codehaus.groovy.bsf.BSFTest, 
org.codehaus.groovy.bsf.CacheBSFTest and groovy.util.MBeanTest. However, 
I can't find them in the source tree. Is it a known issue ? Maybe those 
test classes have been removed recently, but test suites have not been 
updated.

Cédric

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

    http://xircles.codehaus.org/manage_email

Jochen Theodorou | 4 Oct 2011 18:44
Picon
Gravatar

Re: [groovy-dev] BSFTest, CacheBSFTest and MBeanTest

Am 04.10.2011 17:43, schrieb Cédric Champeau:
> Hi,
>
> I'm trying to setup an IntelliJ IDEA project to build groovy from
> sources. I'm almost done, but I have problems compiling some classes (I
> can safely ignore them, whatever) :
>
> JavaSourceCodehausPackagesSuite
> JavaSourceGroovyPackagesNonSecuritySuite
>
> They reference classes named org.codehaus.groovy.bsf.BSFTest,
> org.codehaus.groovy.bsf.CacheBSFTest

it is in
/subprojects/groovy-bsf/src/test/java/org/codehaus/groovy/bsf/BSFTest.java

> and groovy.util.MBeanTest.

/subprojects/groovy-jmx/src/test/java/groovy/util/MBeanTest.java

bye blackdrag

--

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:
(Continue reading)

Cédric Champeau | 4 Oct 2011 18:55
Picon
Gravatar

Re: [groovy-dev] BSFTest, CacheBSFTest and MBeanTest

Thanks ! Indeed my project was only based on the "src" subdirectory and 
did not include those files (they seem to be the only 3 files missing to 
get groovy compiled using only the src subdirectory).

BTW, my IDEA setup is ok, I'll try to recreate a project from scratch do 
put a step-by-step procedure on the wiki.

Le 04/10/2011 18:44, Jochen Theodorou a écrit :
> Am 04.10.2011 17:43, schrieb Cédric Champeau:
>> Hi,
>>
>> I'm trying to setup an IntelliJ IDEA project to build groovy from
>> sources. I'm almost done, but I have problems compiling some classes (I
>> can safely ignore them, whatever) :
>>
>> JavaSourceCodehausPackagesSuite
>> JavaSourceGroovyPackagesNonSecuritySuite
>>
>> They reference classes named org.codehaus.groovy.bsf.BSFTest,
>> org.codehaus.groovy.bsf.CacheBSFTest
>
> it is in
> /subprojects/groovy-bsf/src/test/java/org/codehaus/groovy/bsf/BSFTest.java 
>
>
>
>> and groovy.util.MBeanTest.
>
> /subprojects/groovy-jmx/src/test/java/groovy/util/MBeanTest.java
>
(Continue reading)

Paul King | 5 Oct 2011 05:35
Picon
Favicon
Gravatar

Re: [groovy-dev] BSFTest, CacheBSFTest and MBeanTest

The goal is that you would check it out and then go:

> gradlew idea

The early stages of the modularisation haven't been factored into that goal yet.

Cheers, Paul.

On Wed, Oct 5, 2011 at 2:55 AM, Cédric Champeau
<cedric.champeau@...> wrote:
> Thanks ! Indeed my project was only based on the "src" subdirectory and did
> not include those files (they seem to be the only 3 files missing to get
> groovy compiled using only the src subdirectory).
>
> BTW, my IDEA setup is ok, I'll try to recreate a project from scratch do put
> a step-by-step procedure on the wiki.
>
> Le 04/10/2011 18:44, Jochen Theodorou a écrit :
>>
>> Am 04.10.2011 17:43, schrieb Cédric Champeau:
>>>
>>> Hi,
>>>
>>> I'm trying to setup an IntelliJ IDEA project to build groovy from
>>> sources. I'm almost done, but I have problems compiling some classes (I
>>> can safely ignore them, whatever) :
>>>
>>> JavaSourceCodehausPackagesSuite
>>> JavaSourceGroovyPackagesNonSecuritySuite
>>>
(Continue reading)

Cédric Champeau | 5 Oct 2011 10:33
Picon
Gravatar

[groovy-dev] Setting up IntelliJ IDEA

Hi guys !

I have written a wiki page regarding how to configure IntelliJ IDEA to 
be able to build and debug Groovy from sources. This is a step-by-step 
guide rather than a committed project file because I'm not a big fan of 
those : there are always slight differences in environments or IDE 
versions that make them useless (and I don't like to see commits for 
project files).

However, let me know if you have any question or if you've found a 
simpler way to do this !

http://groovy.codehaus.org/Setting+up+IntelliJ+IDEA+to+build+Groovy?nocache

Cédric

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

    http://xircles.codehaus.org/manage_email

Cédric Champeau | 6 Oct 2011 18:14
Picon
Gravatar

[groovy-dev] Changes to global AST transformation loading

Hi guys!

While working on GROOVY-5025, I noticed a potential problem with the 
current global AST transformation mechanism : if two threads were to 
load or compile groovy scripts in parallel, there were chances that the 
global AST transformations classes were not loaded from the right class 
loader.

The problem is that the ASTTransformationVisitor makes use of static 
fields to store the list of previously encountered global AST 
transformation classes, but also the current compilation unit. After 
digging into the code, I found that this was made necessary by the way 
the GrabAnnotationTransformation works : it requires access to the 
compilation unit in order to add global AST transformations from grabbed 
jars.

Moreover, it was not easy to make GROOVY-5025 possible without changing 
code: in a "secure environment", some people want to disable usage of 
 <at> Grab as well as the AstBuilder which are always loaded. Seeing this, I 
reworked the way those transformations are loaded and removed the static 
fields from ASTTransformationVisitor. Instead of CompilationUnit having 
a transformLoader, I wrapped the latter in a ASTTransformationsContext 
class which holds the state information that was previously found in 
static members, that is to say the list of global AST transformations. 
This class also holds the transform classloader, as well as a reference 
to the compilation unit.

The second change introduces an interface, CompilationUnitAware, which 
can be implemented by AST transformations which require access to the 
current compilation unit. This way, the GrabAnnotationTransformation is 
(Continue reading)

Jochen Theodorou | 6 Oct 2011 20:58
Picon
Gravatar

Re: [groovy-dev] Changes to global AST transformation loading

Am 06.10.2011 18:14, schrieb Cédric Champeau:
[...]
> The changes are on master, I don't know if they should be merged in 1.8.
> If you are not happy with those changes, let me know so that I can
> revert them.

while surely useful, I see the possibility of breaking older code, so I 
would prefer master only.

bye blackdrag

--

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org

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

    http://xircles.codehaus.org/manage_email

Alex Tkachman | 6 Oct 2011 23:17
Picon

Re: [groovy-dev] Changes to global AST transformation loading

For g++ it will be big breaking change. While current behaviour is very wrong and I need to workaround hacky way I woyld prefer to keep it as is in 18x

Best regards
Alex

On Oct 6, 2011 10:58 PM, "Jochen Theodorou" <blackdrag-BA+cFGlbTmA@public.gmane.org> wrote:
> Am 06.10.2011 18:14, schrieb Cédric Champeau:
> [...]
>> The changes are on master, I don't know if they should be merged in 1.8.
>> If you are not happy with those changes, let me know so that I can
>> revert them.
>
> while surely useful, I see the possibility of breaking older code, so I
> would prefer master only.
>
> bye blackdrag
>
> --
> Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
> blog: http://blackdragsview.blogspot.com/
> german groovy discussion newsgroup: de.comp.lang.misc
> For Groovy programming sources visit http://groovy-lang.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
Cédric Champeau | 6 Oct 2011 23:57
Picon
Gravatar

Re: [groovy-dev] Changes to global AST transformation loading

Hi Alex ! Could you tell me what would be breaking exactly ? The meta-inf is still used so I suspect you are using one of those static fields ?

Sent from my android phone.

Le 6 oct. 2011 23:17, "Alex Tkachman" <alex.tkachman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> a écrit :
> For g++ it will be big breaking change. While current behaviour is very
> wrong and I need to workaround hacky way I woyld prefer to keep it as is in
> 18x
>
> Best regards
> Alex
> On Oct 6, 2011 10:58 PM, "Jochen Theodorou" <blackdrag-BA+cFGlbTmA@public.gmane.org> wrote:
>> Am 06.10.2011 18:14, schrieb Cédric Champeau:
>> [...]
>>> The changes are on master, I don't know if they should be merged in 1.8.
>>> If you are not happy with those changes, let me know so that I can
>>> revert them.
>>
>> while surely useful, I see the possibility of breaking older code, so I
>> would prefer master only.
>>
>> bye blackdrag
>>
>> --
>> Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
>> blog: http://blackdragsview.blogspot.com/
>> german groovy discussion newsgroup: de.comp.lang.misc
>> For Groovy programming sources visit http://groovy-lang.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>

Gmane