So I've struggled with an issue for the past 2 day...
# jewel
c
So I've struggled with an issue for the past 2 days or so. Not sure if sleep deprived or i just dont understand intellij + plugin versioning. I basically took the sample repo, and called ./gradlew buildPlugin. Then I took that zip that was generated and in my android studio (latest stable) i went to install plugin from disk, but I was greeted with this error. Two questions 1. What variable do I have to change in order to be able to install this on my IDE. I feel like I've tried exhausted every combination over the past 48 hours. 😅 (e.g. tried bumping toml values
idea = "243.21155.17"
and
intelliJPlatformBuild = "243.21155.17-EAP-SNAPSHOT"
as well as gradle.properties like
ijp.target=243
2. Why are intellij plugins built against a specific known/max version. I see this issue a lot with AS plugins. Seems like plugins aren't forward compatible vs (something that i actually know...) android apps
c
You need to match the version of the IntelliJ Platform SDK you are building with, with the version you plan to use the plugin in. In this case, because you are using IJ 24.2, that is the version of Jewel you need.
What might be the simplest thing to do is checkout the
releases/242
branch, and build your IDE sample in that version of the repo.
c
alright. i like the idea of the 242 branch. for the past two hours I tried just stealing the config of 242 and transplanting it into my project. no dice. then i tried just checking out and building the release/242 branch but it wont build Could not determine the dependencies of task 'sampleside-plugin:runIde'.
Failed to query the value of task 'sampleside-plugin:runIde' property 'runtimeDirectory'.
> java.nio.file.NoSuchFileException: /Users/cidle/.gradle/caches/8.10/transforms/86035d19dd5534649c3f321123c52b6e/transformed/ideaIC-2024.2.3-aarch64 🤷
s
sometimes the IJP Gradle plugin gets really stuck
But also, Gradle 8.10 is known to be broken
So, two things to try @Colton Idle : 1. Upgrade to Gradle 8.10.2+ 2. Delete ~/.gradle/caches (yolo), kill Gradle daemons, close and reopen the IDE
c
Will try this later today! 🤞
indeed there were some messages about ~/.gradle/caches in my logs. so maybe i should have just deleted them at that point. im typically pretty skeptical at deleting gradle cache as it (typically) doesn't help lol