Skip to content

Extension specific preferences #77

@MilesCranmer

Description

@MilesCranmer

Hey there. How do I set preferences for a package extension? I want to only apply the preferences to the extension; not the package as a whole.

I tried

julia> using Mooncake, DynamicExpressions, Preferences

julia> MooncakeExt = Base.get_extension(DynamicExpressions, :DynamicExpressionsMooncakeExt)
DynamicExpressionsMooncakeExt

julia> set_preferences!(MooncakeExt, "dispatch_doctor_mode" => "error")

There is no error. However, I searched my entire filesystem and it seems that no LocalPreferences.toml file has been created. So I guess this failed somehow?

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