fix(rider): Restore rd-gen model generation for both 2025.x and 2026.1#6337
fix(rider): Restore rd-gen model generation for both 2025.x and 2026.1#6337branrin merged 1 commit intofeature/toolkitOnlyfrom
Conversation
Commit 292181d removed hashFolder, classpath, and sources from the RdGenExtension config to accommodate rd-gen 2026.1 API changes, but this broke the 2025.3 build and left 2026.1 model generation non- functional. For pre-2026 profiles, restore the extension properties via reflection to avoid script compilation failures when the 2026.1 rd-gen jar is on the buildscript classpath. For 2026.1+, add a compileModelSources task that pre-compiles model sources with an external Kotlin compiler, since rd-gen 2026.1 removed its built-in Kotlin compilation support.
Qodana for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
|
This fixed the compileKotlin issue in all of the Linux and Windows builds. Now, Windows 2025.1 and 2025.2 fully passed, while the others were a mix of failures for Merging this since it fixes the main issue and will continue to iterate on resolving everything |
Types of changes
Description
Commit 292181d removed hashFolder, classpath, and sources from the RdGenExtension config to accommodate rd-gen 2026.1 API changes, but this broke the 2025.x build and left 2026.1 model generation non-functional.
All the automated unit tests on Linux and Windows were failing with the message below
Fix
For pre-2026 profiles, restore the extension properties via reflection to avoid script compilation failures when the 2026.1 rd-gen jar is on the buildscript classpath.
For 2026.1+, add a compileModelSources task that pre-compiles model sources with an external Kotlin compiler, since rd-gen 2026.1 removed its built-in Kotlin compilation support.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.