-
Notifications
You must be signed in to change notification settings - Fork 272
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
precompiled script plugin configuring intellijPlatform.pluginVerification.ides { } causes ConcurrentModificationException in KotlinGradleModelBuilder #1714
Comments
Thanks for reporting, Julian! The issue you reported isn't directly related to the IntelliJ Platform Gradle Plugin (I see no Do you use Analyze Dependencies action from Gradle Tool Window? If so – this may also be a cause: https://youtrack.jetbrains.com/issue/IDEA-351930/Executing-GradleDependencyReportTask-results-in-ConcurrentModificationException |
Thanks for the references. I'm not using Analyze Dependencies and I have the Package Checker plugin (I assume that is the package search? I had issues with that in the past) disabled. The issue occurs simply by invoking the Gradle sync which then fails to build the Kotlin model. Do you think that's covered by the linked tickets? IMHO this issue is still somewhat related to this plugin, as its dependency setup (resolving a Configuration triggers creation of another) is a bit unorthodox ;) For example simply resolving this configuration somewhere else triggers a Gradle deprecation warning when running
Running
|
That gives me more light, thanks. Background story: Let's assume you want to verify the plugin against Apparently, those configurations get resolved here (correctly), but the Plugin Verifier keeps adding the same dependency objects to existing-and-resolved configurations asynchronously. |
I have fixed that with 1c5e9c3 Could you please verify if this resolves the issue on your end? |
the |
Getting this in 2.0.1: Error
On literally creating a new plugin from the template and changing nothing :( |
The issue is caused by the Package Search plugin. Related issues in YouTrack:
You may try disabling the Package Search plugin in the IDE settings as a workaround. |
https://splitties.github.io/refreshVersions/CHANGELOG/ also gets broken by pluginVerification block
|
…ed by the `pluginVerification` configuration #1714
What happened?
I'm getting "Gradle import errors" warnings during the Gradle sync with the following stacktrace.
Relevant log output or stack trace
Steps to reproduce
I've found the following requirements for the issue to occur:
a precompiled script plugin which configures
a subproject applies
kotlin("jvm")
the root project applies the precompiled script plugin to its subprojects via
plugins.apply(id)
This is admittedly quite convoluted, so here's a repository demonstrating the problem: https://github.com/jhonnen/import-error-repro
Gradle IntelliJ Plugin version
2.0.0
Gradle version
8.9
Operating System
Windows
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered: