Skip to content

Provide plugin mechanism to cancel compilation #1675

@luis-j-soares

Description

@luis-j-soares

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions