Skip to content

REPL hook not working #85

@jhidding

Description

@jhidding

Describe the bug
The REPL hook is not functioning as expected when the hook is enabled in a different stage of loading config and configured in another. The system reads the new config, but is not applied to the hook, since the hook is already loaded.

To Reproduce
Enable the REPL hook by choosing a style=basic config, then configure in the same entangled.toml.

To fix
Hooks need to be context aware. A specific file in a collection may configure a repl session different from others. The hooks are now keeping a global state, but this state should be made explicit. Then the global hook state is what is stored in the context.

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