There's several scenarios in which a plugin could realistically ask the Program/ProgramBuilder to fail early and cancel a build during setup, like missing configuration/manifest entries, or incorrect entry parameters.
The plugin architecture currently does not support ending compilation early. The compiler will keep working to gather all diagnostics before stopping short of outputting a build, but by that point every file will have been parsed and validated, which can take a while on large projects. Additionally, diagnostics for non-parseable files (i.e. those that are not BrsFile or XmlFile, i.e. manifest or images) seem to be discarded.
I'm opening this issue so we can discuss how to approach a feature like this.
There's several scenarios in which a plugin could realistically ask the Program/ProgramBuilder to fail early and cancel a build during setup, like missing configuration/manifest entries, or incorrect entry parameters.
The plugin architecture currently does not support ending compilation early. The compiler will keep working to gather all diagnostics before stopping short of outputting a build, but by that point every file will have been parsed and validated, which can take a while on large projects. Additionally, diagnostics for non-parseable files (i.e. those that are not BrsFile or XmlFile, i.e. manifest or images) seem to be discarded.
I'm opening this issue so we can discuss how to approach a feature like this.