question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IllegalStateException: Task information is not available, as this task execution graph has not been populated.

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cdsapcommented, Jul 9, 2021

@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:

plugins {
  id "io.github.cdsap.talaiot" version "1.5.1"
}

Can you verify please?

0reactions
cdsapcommented, Oct 3, 2021

thanks for the heads-up, closing the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found