raulraja
08/30/2019, 9:24 PMval messageCollector: MessageCollector = configuration.get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE)
This does not work on the IDEA side because CLIConfigurationKeys is not there.
What is the proper way to obtain the MessageCollector in the IDEA plugin that does not use CLIConfigurationKeys
? thanks!shikasd
08/31/2019, 11:45 PMMessageCollector
is available in IDEA. Its package is org.jetbrains.kotlin.cli.common.messages
which suggests it is used for CLI.
If you are trying to report errors or warnings, I have noticed that compiler uses diagnostics for that. JB plugins do the same, e.g. in the serialization plugin: https://github.com/JetBrains/kotlin/blob/master/plugins/kotlin-serialization/kotlin-serialization-compiler/src/org/jetbrains/kotlinx/serialization/compiler/diagnostic/SerializationErrors.javaraulraja
09/01/2019, 1:26 AM