WayZer
07/26/2026, 9:19 AMFirScriptConfigurationExtensionImpl uses valueOr on the refinement result (line 88), which means:
• `Success`diagnostics are silently discarded
• `Failure`shuts down all analysis for the file
Is there a way for script definition providers to report partial errors (e.g. "dependency not found") while still keeping the rest of the configuration working? Currently there's no middle ground.
getOrLoadConfiguration(session, sourceFile!!)?.valueOr {
addErrorElement("Unable to get script compilation configuration: ${it.reports.joinToString("; ") { it.message}}")
return
}Vladislav Koshkin
07/27/2026, 10:16 PMilya.chernikov
07/30/2026, 1:17 PMSuccess result in your refinement callback. Both the Success and the Failure can carry diagnostics.