IllegalStateException: Task information is not available, as this task execution graph has not been populated.
See original GitHub issueHello, I am having this issue when I try to sync my project:
FAILURE: Build failed with an exception.
* What went wrong:
Task information is not available, as this task execution graph has not been populated.
* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
java.lang.IllegalStateException: Task information is not available, as this task execution graph has not been populated.
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.ensurePopulated(DefaultTaskExecutionGraph.java:360)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.getAllTasks(DefaultTaskExecutionGraph.java:327)
at io.github.cdsap.talaiot.TalaiotListener.initQueue(TalaiotListener.kt:117)
at io.github.cdsap.talaiot.TalaiotListener.projectsEvaluated(TalaiotListener.kt:108)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:464)
at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:446)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:61)
at org.gradle.internal.event.DefaultListenerManager$EventBroadcast$ListenerDispatch.dispatch(DefaultListenerManager.java:434)
at org.gradle.internal.event.DefaultListenerManager$EventBroadcast$ListenerDispatch.dispatch(DefaultListenerManager.java:421)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:43)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:245)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:157)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:61)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:346)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:249)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:141)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy26.projectsEvaluated(Unknown Source)
It seems like this line https://github.com/cdsap/Talaiot/blob/17ff22858d1add5b83b64fe3a024141a9b7bff43/library/core/talaiot/src/main/kotlin/io/github/cdsap/talaiot/TalaiotListener.kt#L118 is throwing an IllegalStateException https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/java/org/gradle/execution/taskgraph/DefaultTaskExecutionGraph.java#L360 because graph is empty at that time, can we handle this scenario in the library, or I also appreciate if you help me fix our setup. Thanks in advance!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Getting Gradle task graph at the configuration phase
If I try to get the task graph in our buildSrc code then I receive an exception with Task information is not available,...
Read more >TaskExecutionGraph (Gradle API 7.6)
Returns an empty list if no tasks are to be executed. Throws: java.lang.IllegalStateException - When this graph has not been populated. getDependencies.
Read more >自定义gradle插件报错: Task information is not available ... - 简书
IllegalStateException : Task information is not available, as this task execution graph has not been populated. at ...
Read more >TaskExecutionGraph.getDependencies - api
IllegalStateException - When this graph has not been populated or the task is not part of it. ... The tasks. Returns an empty...
Read more >AGP Variant resValues provider based upon TaskProvider ...
Calculating task graph as configuration cache cannot be reused because ... I'm not sure if this is an AGP bug or an underlying...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mustafaberkaymutlu I was able to reproduce locally the issue. It’s only happening in the IDE, command line works well. We just published a new version:
Can you verify please?
thanks for the heads-up, closing the issue