-
Notifications
You must be signed in to change notification settings - Fork 275
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
IDE re-indexes the same IC sources. Side effect of using Gradle's "transform" cache? #1639
Comments
Hello, Jonathan! I am very well aware of this problem. Let me explain to you the state of the current implementation: Adding the IntelliJ Platform dependency to the project resolves it from the IJ Maven Repository or CDN (download.jetbrains.com). The Gradle IntelliJ Plugin 1.x is extracting content next to the archive, polluting the cache, but it works. After the implementation, it turned out, that Gradle calculates I already had a chat with Gradle folks about this issue, but there's no solution possible to keep relying on the artifact transformers feature. |
Depends on #1601 |
Closing as a duplicate – please track the progress in #1601 |
What happened?
Sometimes, when working on a plugin project, the IDE starts indexing IDE's sources again, even if it has been indexed before. I'm talking about the same sources, per example
idea:ideaC:win:2024.1.2
.I did not clear Gradle's cache. The indexing issue happens randomly, on project loading, or when I update & reload my
build.gradle.kts
.It happened with projects using intellij platform plugin beta 4 and 5. I did not pay attention to this when using older betas.
I guess this is a side effect of using the Gradle's
transform
directory for caching IDEs sources. It did not happen with plugin v1 because it was using thecache
directory. Please look at the screenshots: thetransform
directory seems a bit unstable, which could explain the issue:As you can see, the ID in
...transform-4/ID/transformed/...
path changed. Maybe IDE sources should not be managed this way, or IDE should be able to adapt.It seems random. I faced the issue two days ago and today, but nothing yesterday.
Using IntelliJ Ultimate 2024.1.2.
Relevant log output or stack trace
No response
Steps to reproduce
Reload project or edit
build.gradle.kts
. Please not this is random, so you may need time, and luck, to reproduce this issue.Gradle IntelliJ Plugin version
2.0.0-beta5
Gradle version
8.7
Operating System
Windows
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered: