Olaf Gottschalk
08/01/2025, 5:10 AMBasicScriptingHost.eval(...)
function to run script code, is there any way, a script can programmatically add elements to the reports
property of the ResultWithDiagnostics
that it returns?
In some situations that are caught at runtime of my script, I want to return a warning just like a compiler warning, but my script can only detect this at runtime like when a user does something they are not intended to do. My current "solution" is to log a warning using a logger... but this is really not what I want. I need this information as a side-information along with the result of the script evaluation. So, ideally, in my script, I would like to call a function that adds elements to this collection of ScriptDiagnostic
elements with a severity of warning...
Is that possible?ilya.chernikov
08/04/2025, 1:19 PMOlaf Gottschalk
08/04/2025, 2:36 PM