intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Unable to download sources for plugin cucumber-java

Open simonstratmann opened this issue 7 months ago • 1 comments
trafficstars

What happened?

I've added the bundled plugin cucumber-java to my project. When opening a class from that plugin IntelliJ tries to download the sources which fails.

Relevant log output or stack trace

Unhandled exception in [Kernel@ddl6pi95ojhuo1bk7h0h, Rete(failFast=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@cb51256, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@cb51256)), DbSourceContextElement(kernel Kernel@ddl6pi95ojhuo1bk7h0h), ComponentManager(ProjectImpl@649322109), ClientId(value=Host), CoroutineName(org.jetbrains.plugins.gradle.service.editor.GradleDownloadSourceEditorListener), Dispatchers.Default]

java.lang.IllegalStateException: Unable to download artifact.
	at org.jetbrains.plugins.gradle.util.GradleArtifactDownloader$downloadArtifact$listener$1.onFailure(GradleArtifactDownloader.kt:102)
	at com.intellij.openapi.externalSystem.service.remote.ExternalSystemProgressNotificationManagerImpl$TaskListenerWrapper.onFailure(ExternalSystemProgressNotificationManagerImpl.kt:114)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120)
	at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:85)
	at jdk.proxy2/jdk.proxy2.$Proxy369.onFailure(Unknown Source)
	at com.intellij.openapi.externalSystem.service.remote.ExternalSystemProgressNotificationManagerImpl.onFailure$lambda$8(ExternalSystemProgressNotificationManagerImpl.kt:70)
	at com.intellij.openapi.externalSystem.service.remote.ExternalSystemProgressNotificationManagerImpl.forEachListener$lambda$13(ExternalSystemProgressNotificationManagerImpl.kt:96)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:289)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:755)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:711)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:297)
	at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:139)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:297)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:288)
	at com.intellij.openapi.externalSystem.service.remote.ExternalSystemProgressNotificationManagerImpl.forEachListener(ExternalSystemProgressNotificationManagerImpl.kt:94)
	at com.intellij.openapi.externalSystem.service.remote.ExternalSystemProgressNotificationManagerImpl.onFailure(ExternalSystemProgressNotificationManagerImpl.kt:70)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.withExecutionProgressManager(AbstractExternalSystemTask.java:228)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.lambda$execute$2(AbstractExternalSystemTask.java:134)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.withProcessingManager(AbstractExternalSystemTask.java:201)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:133)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:116)
	at com.intellij.openapi.externalSystem.service.execution.ExternalSystemRunnableState.executeTask(ExternalSystemRunnableState.java:393)
	at com.intellij.openapi.externalSystem.service.execution.ExternalSystemRunnableState.lambda$execute$1(ExternalSystemRunnableState.java:240)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$submitTask$8(BackgroundTaskUtil.java:266)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$createBackgroundTask$10(BackgroundTaskUtil.java:302)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:229)
	at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:43)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:228)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:680)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:755)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:711)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:679)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:77)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:209)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$createBackgroundTask$11(BackgroundTaskUtil.java:297)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:102)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:102)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:108)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:102)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [Kernel@ddl6pi95ojhuo1bk7h0h, Rete(failFast=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@cb51256, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@cb51256)), DbSourceContextElement(kernel Kernel@ddl6pi95ojhuo1bk7h0h), ComponentManager(ProjectImpl@649322109), ClientId(value=Host), CoroutineName(org.jetbrains.plugins.gradle.service.editor.GradleDownloadSourceEditorListener), StandaloneCoroutine{Cancelled}@369e0589, Dispatchers.Default]

Steps to reproduce

IntelliJ 2025.1 with Gradle Plugin 2.5.0 Add plugin cucumber-java Open any class from that plugin and download sources.

Gradle IntelliJ Plugin version

2.5.0

Gradle version

8.6

Operating System

None

Link to build, i.e. failing GitHub Action job

No response

simonstratmann avatar Apr 25 '25 06:04 simonstratmann

Gradle prints:

Execution failed for task ':ijDownloadArtifactb4e20b54-d15'.
> Could not resolve all files for configuration ':downloadArtifact_dc462c9d-2911-4747-8df2-75f26185324c'.
   > Could not find Gherkin-243.22562.13-sources.jar (com.jetbrains.plugins:Gherkin:243.22562.13).
     Searched in the following locations:
         https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/plugins/Gherkin/243.22562.13/Gherkin-243.22562.13-sources.jar

simonstratmann avatar Apr 25 '25 06:04 simonstratmann