Closed MilesCranmer closed 1 month ago
@mkitti is there a way to check for preferences from the parent modules as well?
I ran into an issue where
module A
@stable begin
module B
f() = rand(Bool) ? 1 : 1.0
end
end
end
the LocalPreferences.toml for A (which is a registered package) is not being propagated to B... Is that a known issue?
Note that the macro form of @load_preference
uses the package's UUID:
https://github.com/JuliaPackaging/Preferences.jl/blob/209a45060b8eef13a790300189dfd30c2cb6a1e1/src/Preferences.jl#L52-L56
See get_uuid
:
https://github.com/JuliaPackaging/Preferences.jl/blob/209a45060b8eef13a790300189dfd30c2cb6a1e1/src/utils.jl#L36-L53
Thanks! get_uuid
fixed it.
And the style of this, any final comments on it? Is this the sort of idea you had in mind?
And "instability_check" or maybe "dispatch_doctor"... Any preference?
Going to merge so people see the new syntax before too long, but happy to change things later if needed.
Is there a preference for DispatchDoctor.jl itself that might change the default behavior?
Do you mean whether default_mode
should be something other than "error"
?
@mkitti what do you think?
From the new README: