I'm just starting writing compiler plugins and jus...
# compiler
a
I'm just starting writing compiler plugins and just want to ask if there is a way to log in the extensions , or debug the compiler (that would be perfect )
i
You can add the sources to your project and put debug points at the lines you care about
If your debugging the Kotlin build process you have to use an remote debugger
f
Hi, yes, you can log. Inside your ComponentRegistrar to can get the MessageCollector from the configuration e.g.: val collector = configuration.get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE) collector.report( CompilerMessageSeverity.WARNING, message ) Maybe this can help to add the debugger : https://github.com/Foso/MpApt/wiki/How-to-debug-Kotlin-Compiler-Plugin
👍 2
a
@Imran/Malic yeah i want to debug the kotlin build process , @Foso thanks for sharing
just another question is a there some docs where i can learn all the extensions and when to use them ?
f
a
okey thanks , but i really dont understand why jetbrains keep silent about the compiler api although last year andrey has said that meta programming in kotlin will be speceific to the kotlin compiler plugins , even at the kotlinconf there is no talk about compiler plugins
i
🙂 Check out this years Lambda World, where we present some of our progress. The talks are all recorded.
👍 2
@Imran/Malic yeah i want to debug the kotlin build process , @Foso thanks for sharing
@Akram just follow the instruction in Gradle for setting up a remote Debugger for gradle plugin’s and then put the Debug points where you want in the build process.
You can also join #arrow-meta if you want to stay updated.
a
@Imran/Malic yeah i'm already in the channel and i'm definetly going to watch some of your talks
👍🏽 1
i
Thank you @Akram feel free to ask anything in the channel. Everyone is going to profit from early discussions.
a
yeah that's why kotlin is so awesome its comminuty is just perfect !!