Skip to content

Errors in package hooks are not handled robustly #330

@jkrumbiegel

Description

@jkrumbiegel

It appears that the worker can get stuck or when it's run with a package hook that fails. I had this happen in a refresh hook that failed on rerender, the exact circumstances might not matter. It looks like the hooks are just invoked without any try catch, should look into whether this bubbles up to QNR as an error that can in principle be handled or if it puts the worker in a broken state.

global function run_package_loading_hooks()
for hook in hooks
Base.@invokelatest hook()
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions