You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Chris Poulsen (Created) (JIRA)" <ji...@apache.org> on 2011/09/27 11:02:12 UTC

[jira] [Created] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Running "gradle idea" fails on a clean checkout
-----------------------------------------------

                 Key: TAP5-1671
                 URL: https://issues.apache.org/jira/browse/TAP5-1671
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3, 5.2
            Reporter: Chris Poulsen
            Priority: Minor


This have been mentioned on the mailing list before. Steps to reproduce: 
1) Perform a clean checkout of trunk
2) Issue "gradle idea"
3) The build fails with some error about "could not invoke minus on null"

A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by Chris Poulsen <ma...@nesluop.dk>.
Hi Taha,

Yeah, I know (actually it is mentioned in the jira as well) ;)

I'm just thinking that this one has the potential to trip up newcomers, so
if there is an easy fix (possibly my naive patch, a change in task
dependencies or a third solution) I think it should be applied.

-- 
Chris

On Tue, Sep 27, 2011 at 2:09 PM, Taha Hafeez <ta...@gmail.com>wrote:

> Hi Chris
>
> A simple workaround is to run gradle build first.
>
> On Tue, Sep 27, 2011 at 3:56 PM, Chris Poulsen (Commented) (JIRA)
> <ji...@apache.org> wrote:
> >
> >    [
> https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115385#comment-13115385]
> >
> > Chris Poulsen commented on TAP5-1671:
> > -------------------------------------
> >
> > Yes, if you mean using "gradlew idea".
> >
> > C:\code\framework\tap5-clean>svn status
> >
> > C:\code\framework\tap5-clean>gradlew.bat idea
> > :ideaModule
> > :ideaProject
> > :ideaWorkspace
> > :idea
> > :plastic:ideaModule
> > :plastic:idea
> > :quickstart:ideaModule
> > :quickstart:idea
> > :tapestry-beanvalidator:ideaModule
> > :tapestry-beanvalidator:idea
> > :tapestry-core:ideaModule
> >
> > FAILURE: Build failed with an exception.
> >
> > * Where:
> > Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle'
> line: 56
> >
> > * What went wrong:
> > Execution failed for task ':tapestry-core:ideaModule'.
> > Cause: Cannot invoke method minus() on null object
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> >
> > BUILD FAILED
> >
> > Total time: 12.104 secs
> >
> > C:\code\framework\tap5-clean>
> >
> >> Running "gradle idea" fails on a clean checkout
> >> -----------------------------------------------
> >>
> >>                 Key: TAP5-1671
> >>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
> >>             Project: Tapestry 5
> >>          Issue Type: Bug
> >>          Components: tapestry-core
> >>    Affects Versions: 5.3, 5.2
> >>            Reporter: Chris Poulsen
> >>            Priority: Minor
> >>              Labels: gradle, tapestry-core
> >>         Attachments: fix_gradle_idea_on_clean_checkout.patch
> >>
> >>
> >> This have been mentioned on the mailing list before. Steps to reproduce:
> >> 1) Perform a clean checkout of trunk
> >> 2) Issue "gradle idea"
> >> 3) The build fails with some error about "could not invoke minus on
> null"
> >> A work around is to do "gradle build" before attempting to generate the
> idea project.
> >
> > --
> > This message is automatically generated by JIRA.
> > If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> > For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> >
> >
> >
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>

Re: [jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by Taha Hafeez <ta...@gmail.com>.
Hi Chris

A simple workaround is to run gradle build first.

On Tue, Sep 27, 2011 at 3:56 PM, Chris Poulsen (Commented) (JIRA)
<ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115385#comment-13115385 ]
>
> Chris Poulsen commented on TAP5-1671:
> -------------------------------------
>
> Yes, if you mean using "gradlew idea".
>
> C:\code\framework\tap5-clean>svn status
>
> C:\code\framework\tap5-clean>gradlew.bat idea
> :ideaModule
> :ideaProject
> :ideaWorkspace
> :idea
> :plastic:ideaModule
> :plastic:idea
> :quickstart:ideaModule
> :quickstart:idea
> :tapestry-beanvalidator:ideaModule
> :tapestry-beanvalidator:idea
> :tapestry-core:ideaModule
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle' line: 56
>
> * What went wrong:
> Execution failed for task ':tapestry-core:ideaModule'.
> Cause: Cannot invoke method minus() on null object
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 12.104 secs
>
> C:\code\framework\tap5-clean>
>
>> Running "gradle idea" fails on a clean checkout
>> -----------------------------------------------
>>
>>                 Key: TAP5-1671
>>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>>             Project: Tapestry 5
>>          Issue Type: Bug
>>          Components: tapestry-core
>>    Affects Versions: 5.3, 5.2
>>            Reporter: Chris Poulsen
>>            Priority: Minor
>>              Labels: gradle, tapestry-core
>>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>>
>>
>> This have been mentioned on the mailing list before. Steps to reproduce:
>> 1) Perform a clean checkout of trunk
>> 2) Issue "gradle idea"
>> 3) The build fails with some error about "could not invoke minus on null"
>> A work around is to do "gradle build" before attempting to generate the idea project.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] [Assigned] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti reassigned TAP5-1671:
-------------------------------------

    Assignee: Massimo Lusetti
    
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti resolved TAP5-1671.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3
    
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>             Fix For: 5.3
>
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115444#comment-13115444 ] 

Massimo Lusetti commented on TAP5-1671:
---------------------------------------

Will look into this later today
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115358#comment-13115358 ] 

Massimo Lusetti commented on TAP5-1671:
---------------------------------------

Have you tried to use the gradle wrapper from the source tree?
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti reassigned TAP5-1671:
-------------------------------------

    Assignee: Massimo Lusetti
    
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti resolved TAP5-1671.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3
    
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>             Fix For: 5.3
>
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117408#comment-13117408 ] 

Hudson commented on TAP5-1671:
------------------------------

Integrated in tapestry-trunk-freestyle #554 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/554/])
    TAP5-1671 Execute the grammarSourceGenerate tasks to have the generated source available to idea plugin

mlusetti : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1177349
Files : 
* /tapestry/tapestry5/trunk/tapestry-core/build.gradle

                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>             Fix For: 5.3
>
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Chris Poulsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115385#comment-13115385 ] 

Chris Poulsen commented on TAP5-1671:
-------------------------------------

Yes, if you mean using "gradlew idea".

C:\code\framework\tap5-clean>svn status

C:\code\framework\tap5-clean>gradlew.bat idea
:ideaModule
:ideaProject
:ideaWorkspace
:idea
:plastic:ideaModule
:plastic:idea
:quickstart:ideaModule
:quickstart:idea
:tapestry-beanvalidator:ideaModule
:tapestry-beanvalidator:idea
:tapestry-core:ideaModule

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle' line: 56

* What went wrong:
Execution failed for task ':tapestry-core:ideaModule'.
Cause: Cannot invoke method minus() on null object

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 12.104 secs

C:\code\framework\tap5-clean>
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115358#comment-13115358 ] 

Massimo Lusetti commented on TAP5-1671:
---------------------------------------

Have you tried to use the gradle wrapper from the source tree?
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Chris Poulsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Poulsen updated TAP5-1671:
--------------------------------

    Attachment: fix_gradle_idea_on_clean_checkout.patch

I don't know much about gradle/groovy. 

So I've just wrapped the offending line in a try/catch and default it to an empty set if an exception is thrown.

If the task is truly dependent on some generated folders being present I guess we should make sure that the build task is marked as a dependency of the idea task.
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Massimo Lusetti (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115444#comment-13115444 ] 

Massimo Lusetti commented on TAP5-1671:
---------------------------------------

Will look into this later today
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Chris Poulsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115385#comment-13115385 ] 

Chris Poulsen commented on TAP5-1671:
-------------------------------------

Yes, if you mean using "gradlew idea".

C:\code\framework\tap5-clean>svn status

C:\code\framework\tap5-clean>gradlew.bat idea
:ideaModule
:ideaProject
:ideaWorkspace
:idea
:plastic:ideaModule
:plastic:idea
:quickstart:ideaModule
:quickstart:idea
:tapestry-beanvalidator:ideaModule
:tapestry-beanvalidator:idea
:tapestry-core:ideaModule

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\code\framework\tap5-clean\tapestry-core\build.gradle' line: 56

* What went wrong:
Execution failed for task ':tapestry-core:ideaModule'.
Cause: Cannot invoke method minus() on null object

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 12.104 secs

C:\code\framework\tap5-clean>
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Chris Poulsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Poulsen updated TAP5-1671:
--------------------------------

    Attachment: fix_gradle_idea_on_clean_checkout.patch

I don't know much about gradle/groovy. 

So I've just wrapped the offending line in a try/catch and default it to an empty set if an exception is thrown.

If the task is truly dependent on some generated folders being present I guess we should make sure that the build task is marked as a dependency of the idea task.
                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Priority: Minor
>              Labels: gradle, tapestry-core
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1671) Running "gradle idea" fails on a clean checkout

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117408#comment-13117408 ] 

Hudson commented on TAP5-1671:
------------------------------

Integrated in tapestry-trunk-freestyle #554 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/554/])
    TAP5-1671 Execute the grammarSourceGenerate tasks to have the generated source available to idea plugin

mlusetti : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1177349
Files : 
* /tapestry/tapestry5/trunk/tapestry-core/build.gradle

                
> Running "gradle idea" fails on a clean checkout
> -----------------------------------------------
>
>                 Key: TAP5-1671
>                 URL: https://issues.apache.org/jira/browse/TAP5-1671
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Chris Poulsen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>              Labels: gradle, tapestry-core
>             Fix For: 5.3
>
>         Attachments: fix_gradle_idea_on_clean_checkout.patch
>
>
> This have been mentioned on the mailing list before. Steps to reproduce: 
> 1) Perform a clean checkout of trunk
> 2) Issue "gradle idea"
> 3) The build fails with some error about "could not invoke minus on null"
> A work around is to do "gradle build" before attempting to generate the idea project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira