Tóth István Zoltán
05/28/2023, 11:32 AMftomassetti
05/28/2023, 1:44 PMTóth István Zoltán
05/28/2023, 1:53 PMdmitriy.novozhilov
05/29/2023, 7:13 AMAm I right that a plugin forked from ... would need a compiler version of 1.9+? for the project that uses the plugin?No, you can use any stable compiler to compile plugin itself But it's better to depend on
kotlin-compiler-embedable
of most recent dev version, because atm compiler API changes quite often (not the extensions API, but compiler internals itself)
Also, for FIR to work in the editor, should I use an EAP IDEA? These are not problems for me, I just want to figure out how to proceed.There is a prototype of out-of-box plugin support (plugins automatically loaded into IDE from gradle configuration) in K2 IDE plugin. But K2 IDE itself is not avaliable anywhere except
master
IDEA branch. So if you want to play with it you need to build IDEA from sources (there is a prepared IDEA Community (K2 Kotlin)
run configuration for that. Also you will need to set kotlin.k2.only.bundled.compiler.plugins.enabled
registry key to true
in the IDE you built to enable plugins loading (there are not solved questions about binary compatibility, so by default only official plugins are loaded)Javier
06/13/2023, 7:34 PMgetTopLevelCallableIds
function, I get the popup with the exception.
But looks like the generateFunctions
is not called at all, same code is working on the test framework tests, but not in the sandbox project.
Any idea what can be happening?Javier
06/13/2023, 9:05 PMdmitriy.novozhilov
06/14/2023, 12:28 PMRoman Golyshev
06/14/2023, 12:40 PMkotlin.k2.only.bundled.compiler.plugins.enabled
to false
and reimport the projectJavier
06/14/2023, 12:42 PMJavier
06/14/2023, 12:42 PMRoman Golyshev
06/14/2023, 1:12 PMJavier
06/14/2023, 1:14 PMProtocol message contained an invalid tag (zero).
Javier
06/14/2023, 1:20 PMJavier
06/14/2023, 1:20 PM