>I guess it would be good if Szczepan could load up 10.5.1 and try with
>that.  I'll see if I can install a 10.0.3 and see if that works for me.

To make things easier: 10.5.1 worked for me ok with your project :).

What you could do:
 - rebuild project in idea (stale classes, stale cache might have made your
IDE confused)
 - fresh checkout and then ./gradlew idea

If it still does not work can you tell me what the problem is exactly? The
symptoms you mentioned:

>project code is compiled to the
out/production directory, all the test files compiled to out/debug and
the test compile does not include the production compile results in the
classpath

Are you sure test files are compiled to out/debug? Also it seems unlikely
that production classes are not visible by the same module's test classes
because this setting is not configurable in IDEA, e.g. compilation of test
sources of idea module always uses classes of that module.

Hope that helps!

On Thu, Aug 25, 2011 at 7:37 PM, Russel Winder <[email protected]> wrote:

> Szczepan,
>
> On Thu, 2011-08-25 at 16:28 +0200, Szczepan Faber wrote:
> > Hey Russel,
> >
> >
> > I checked out this project and imported it to idea. It compiles fine,
> > runs tests, etc.
>
> Thanks muchly for taking the time and trouble to do that, much
> appreciated.  It is good to know that at least in some context it works
> as expected.
>
> >
> > I generated the files using:
> >
> >
> > ./gradlew idea
> >
> >
> > (I needed to comment out the site plugin for the time being because
> > otherwise the build fails with unresolved dependencies).
>
> Oh dear.  I must check what is wrong there as it works for me.
>
> >
> > I'm using IDEA 10.0.3.
> >
> >
> > By default, compiler output paths are configured:
> >   out/production for production classes
> >   out/test for test classes
> >
> >
> > I don't know why the project doesn't compile for you in idea. Perhaps
> > run ./gradlew cleanIdea idea to regenerate the metadata files?
>
> I ran:
>
>        gradlew cleanIdea
>        gradlew idea
>
> and then started IntelliJIDEA and opened the project, tried to compile
> it and got the same problems :-((
>
> However . . .
>
>
> On Thu, 2011-08-25 at 09:31 -0600, Daz DeBoer wrote:
> > Most of the Gradleware team has avoided updating to IDEA 10.5 due to
> > issues with groovy support. I believe these manifested themselves as
> > compile problems.
> > Perhaps this be the cause of your problems?
> > Daz
> >
>
> Hummm... an insightful perception possibly.  I am using IDEA Ultimate
> 10.5.1.  Does this mean I am ultimately buggered (to use a British
> colloquialism).
>
> I guess it would be good if Szczepan could load up 10.5.1 and try with
> that.  I'll see if I can install a 10.0.3 and see if that works for me.
>
> Thanks to you both, we may have forward motion!
>
> --
> Russel.
>
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:[email protected]
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>



-- 
Szczepan Faber
Principal engineer@gradleware
Lead@mockito

Reply via email to