Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectorTransformer execution failed with Plugin 2.2.x for the Grazie Pro plugin #1851

Open
ahus1 opened this issue Dec 20, 2024 · 3 comments

Comments

@ahus1
Copy link

ahus1 commented Dec 20, 2024

What happened?

I want to upgrade from plugin version 2.1.0 to 2.2.x, and now the build fails with a compile error most likely due to the transformer failure.

Updating the Grazie professional plugin to com.intellij.grazie.pro:0.3.354 doesn't help, it is the same error message.

What makes it difficult to fix/reproduce: The exception of the transformer happens only on the first run, as the transformed output is kept. On the next run, it fails with only the compile error as the classes from the Grazie plugin are not available in the compile class path. The same exception occurs only if I clean the gradle caches.

Relevant log output or stack trace

[org.jetbrains.intellij.platform] org.jetbrains.intellij.platform.gradle.artifacts.transform.CollectorTransformer$Inject1 execution failed.
org.gradle.api.GradleException: Unknown input: /home/aschwart/.gradle/caches/transforms-4/c4bbb37430a2fc123dc9a2c3426f631b/transformed/com.intellij.grazie.pro-0.3.354
        at org.jetbrains.intellij.platform.gradle.artifacts.transform.CollectorTransformer.transform(CollectorTransformer.kt:103)
        at org.gradle.api.internal.artifacts.transform.DefaultTransform.transform(DefaultTransform.java:276)
        at org.gradle.api.internal.artifacts.transform.AbstractTransformExecution$2.call(AbstractTransformExecution.java:143)
        at org.gradle.api.internal.artifacts.transform.AbstractTransformExecution$2.call(AbstractTransformExecution.java:137)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.artifacts.transform.AbstractTransformExecution.executeWithinTransformerListener(AbstractTransformExecution.java:137)
        at org.gradle.api.internal.artifacts.transform.AbstractTransformExecution.execute(AbstractTransformExecution.java:130)
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)

Steps to reproduce

See PR asciidoctor/asciidoctor-intellij-plugin#1777

Run ./gradlew check

Gradle IntelliJ Plugin version

2.2.1, 2.2.2-SNAPSHOT

Gradle version

8.7, 8.10.2

Operating System

Linux, Windows

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

https://github.com/asciidoctor/asciidoctor-intellij-plugin/actions/runs/13215388662/job/36894039608?pr=1777

logs_34115014782.zip

@ahus1
Copy link
Author

ahus1 commented Feb 8, 2025

The problems persists. I tried a different OS, a new Gradle version, and the SNAPSHOT version of the plugin. Nothing helps here.

I updated the description above as the build logs were removed in the meantime.

I assume I need the new plugin version to successfully build the EAP 2025 version? Please help!

@ahus1 ahus1 changed the title CollectorTransformer execution failed with Plugin 2.2.x CollectorTransformer execution failed with Plugin 2.2.x for the Grazie Pro plugin Feb 8, 2025
@hsz
Copy link
Member

hsz commented Feb 8, 2025

@ahus1 thanks for bumping that. The CollectorTransformer fails to load the Grazie Pro plugin due to issues found by the Plugin Verifier:

Could not resolve plugin: '/Users/hsz/.gradle/caches/8.11.1/transforms/ddcadb78e425bf57dd5d6c7941707f4d/transformed/com.intellij.grazie.pro-0.3.359/grazie-pro':
Invalid plugin descriptor 'plugin.xml'. The plugin ID 'com.intellij.grazie.pro' has a prefix 'com.intellij' that is not allowed.
Invalid plugin descriptor 'plugin.xml'. The plugin ID 'com.intellij.grazie.pro' should not include the word 'intellij'.
Invalid plugin descriptor 'plugin.xml'. The <release-version> parameter (03) format is invalid. Ensure it is an integer with at least two digits.

@novotnyr could you please take a look at it?

@el7cosmos
Copy link

I have a similar problem for other plugin, it failed to load fr.adrienbrault.idea.symfony2plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants