altavir
08/30/2020, 11:34 AMERROR Class 'hep.dataforge.workspace.WorkspaceBuilder' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler (script.kts:3:1)
java.lang.IllegalStateException: ERROR Class 'hep.dataforge.workspace.WorkspaceBuilder' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler (script.kts:3:1)
when interpreting a script from string. Why is that?altavir
08/30/2020, 12:31 PMudalov
-Xir-binary-with-stable-abi
in builds of the libraries. But this might be risky in case of said ABI differences, and I don’t recommend this, especially if your libraries have external users
3) Suppress this error by allowing the old backend to depend on IR-generated libraries. For this, you can provide -Xallow-jvm-ir-dependencies
at the point where the script is being interpreted
If you choose option 2 or 3, please be prepared for possible breakages when updating to future Kotlin 1.4.* versionsaltavir
08/31/2020, 10:39 AM