tapchicoma
12/08/2020, 8:31 PM1.4.10
to 1.4.20
in ktlint project, I start to see this exception on our CLI tool. CLI tool is basically ktlint jar file plus prepended shell script that launches jar itself using system java. Zip format (jar is a zip file) allows to perpend arbitrary data before actual archive content.
Exception is happing on these lines:
val compilerConfiguration = CompilerConfiguration()
compilerConfiguration.put(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE)
val project = KotlinCoreEnvironment.createForProduction(
{},
compilerConfiguration,
EnvironmentConfigFiles.JVM_CONFIG_FILES
).project as MockProject
Any direction what change may cause this exception?