Discussion:
[1.0-m-7] Gradle idea task fails with lock exception
Howard Lewis Ship
2012-01-05 17:59:35 UTC
Permalink
$ gr 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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$

I deleted my .gradle directory and retried, same result.

I then deleted everything in my ~/.gradle folder (except my gradle.properties).

Same result. Here's the --debug console output: https://gist.github.com/1566381

Looks like this might be a serious bug?

I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
Howard Lewis Ship
2012-01-05 18:05:41 UTC
Permalink
This is looking pretty damning for 1.0-m-7, as m-6 seems to be working
correctly.
Post by Howard Lewis Ship
$ gr 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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my gradle.properties).
Same result.  Here's the --debug console output: https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
Adam Murdoch
2012-01-05 20:37:06 UTC
Permalink
Do you have a stacktrace for the failure?
Post by Howard Lewis Ship
$ gr 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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my gradle.properties).
Same result. Here's the --debug console output: https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
Howard Lewis Ship
2012-01-05 21:29:15 UTC
Permalink
Yes, in the gist link.

On Thu, Jan 5, 2012 at 12:37 PM, Adam Murdoch
Post by Adam Murdoch
Do you have a stacktrace for the failure?
$ gr
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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my
gradle.properties).
https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
Adam Murdoch
2012-01-05 23:23:57 UTC
Permalink
Looks like we've broken calling another task's execute() method from a task action, which was never really supported.

You should change this in tapestry-core/build.gradle:

ideaModule.doFirst {
tasks.generateGrammarSource.execute()
}

to something like this:

ideaModule.dependsOn generateGrammarSource
Post by Howard Lewis Ship
Yes, in the gist link.
On Thu, Jan 5, 2012 at 12:37 PM, Adam Murdoch
Post by Adam Murdoch
Do you have a stacktrace for the failure?
$ gr
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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my
gradle.properties).
https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
Howard Lewis Ship
2012-01-06 02:18:33 UTC
Permalink
Thanks! I'll give it a try tomorrow.
Post by Adam Murdoch
Looks like we've broken calling another task's execute() method from a
task action, which was never really supported.
Post by Adam Murdoch
ideaModule.doFirst {
tasks.generateGrammarSource.execute()
}
ideaModule.dependsOn generateGrammarSource
Yes, in the gist link.
On Thu, Jan 5, 2012 at 12:37 PM, Adam Murdoch
Do you have a stacktrace for the failure?
$ gr
idea:ideaModule:ideaProject:ideaWorkspace:idea:plastic:ideaModule:plastic:idea:quickstart:ideaModule:quickstart:idea:tapestry-beanvalidator:ideaModule:tapestry-beanvalidator:idea:tapestry-core:ideaModule
Post by Adam Murdoch
FAILURE: Build failed with an exception.
* Where:Build file
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
Post by Adam Murdoch
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my
gradle.properties).
https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
Howard Lewis Ship
2012-01-06 16:38:14 UTC
Permalink
Seems to be working fine now; I still have one warning I don't know
how to deal with, but I'll see if the upcoming Portland Gradle
training helps.
Post by Howard Lewis Ship
Thanks! I'll give it a try tomorrow.
Post by Adam Murdoch
Looks like we've broken calling another task's execute() method from a
task action, which was never really supported.
ideaModule.doFirst {
   tasks.generateGrammarSource.execute()
}
ideaModule.dependsOn generateGrammarSource
Yes, in the gist link.
On Thu, Jan 5, 2012 at 12:37 PM, Adam Murdoch
Do you have a stacktrace for the failure?
$ gr
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
'/Users/hlship/workspaces/tapestry/tapestry5/tapestry-core/build.gradle'
line: 53
* What went wrong:Execution failed for task
':tapestry-core:ideaModule'.Cause: The task artifact state cache
(/Users/hlship/workspaces/tapestry/tapestry5/.gradle/1.0-milestone-7/taskArtifacts)
has not been locked.
* 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: 9.119 secs~/workspaces/t5$
I deleted my .gradle directory and retried, same result.
I then deleted everything in my ~/.gradle folder (except my
gradle.properties).
https://gist.github.com/1566381
Looks like this might be a serious bug?
I'm going to try reverting to m6 and see if that fixes my problem.
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
Ricardo Mayerhofer
2012-04-17 17:58:12 UTC
Permalink
Hi Adam,
I faced this same problem today. I couldn't solve it with "depends on",
because it doesn't follow execution order.

Any suggestion?

Thanks,
Ricardo

--
View this message in context: http://gradle.1045684.n5.nabble.com/1-0-m-7-Gradle-idea-task-fails-with-lock-exception-tp5123405p5647156.html
Sent from the gradle-user mailing list archive at Nabble.com.
Adam Murdoch
2012-04-17 23:45:49 UTC
Permalink
Post by Ricardo Mayerhofer
Hi Adam,
I faced this same problem today. I couldn't solve it with "depends on",
because it doesn't follow execution order.
You'll need to give us a little more detail about what you're trying to do.
Post by Ricardo Mayerhofer
Any suggestion?
Thanks,
Ricardo
--
View this message in context: http://gradle.1045684.n5.nabble.com/1-0-m-7-Gradle-idea-task-fails-with-lock-exception-tp5123405p5647156.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Loading...