Repository navigation
Import Interval and symbolic_discretize from their owning packages - #613
Merged
ChrisRackauckas merged 1 commit intoJul 29, 2026
Conversation
PDEBase stopped re-exporting `Interval` and `symbolic_discretize` when it
switched to `import DomainSets` / `import SciMLBase`, so
`isdefined(PDEBase, :Interval)` and `isdefined(PDEBase, :symbolic_discretize)`
are both false. On Julia 1.11+ an unresolvable `using X: name` is only a
warning, which is why this still loads there, but on the LTS it is a hard
error:
using PDEBase: Interval -> UndefVarError: `Interval` not defined
Take them from the packages that own and declare them public: `Interval`
from DomainSets, `symbolic_discretize` from SciMLBase. Both are already
direct dependencies, and `SciMLBase.symbolic_discretize` is how every call
site in this package already spells it.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0117aJvytDT3y2jMi5Ng6Q5m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PDEBase switched from
using DomainSets/using SciMLBasetoimport DomainSets/import SciMLBase, so it no longer re-exports these names. Against current PDEBase master:MethodOfLines imports both from PDEBase:
On Julia 1.11+ an unresolvable
using X: nameis only a warning, which is why this still loads and tests pass onjulia 1. On the LTS it is a hard error. Measured against PDEBase master on 1.10.11:So MethodOfLines fails to load outright on the Julia LTS. This is currently masked: while PDEBase was briefly at 0.2.0 the downstream jobs died at resolution before reaching it, and now that it is back to 0.1.31 they resolve and pass on 1.12 without exercising the LTS path.
Fix
Take each name from the package that owns it and declares it public:
Intervalfrom DomainSets —parentmoduleis IntervalSets, but DomainSets declares it public rather than merely forwarding it (Base.ispublic(DomainSets, :Interval) == true), and DomainSets is already a direct dependency. Using IntervalSets directly would mean adding a dependency for no gain.symbolic_discretizefrom SciMLBase —Base.ispublic(SciMLBase, :symbolic_discretize) == true. This also matches every call site in this package, which already spells itSciMLBase.symbolic_discretize(MOL_discretization.jl:87,:109,staggered_discretize.jl:6). The import exists only to bind the name for theexporton line 120.No compat change is needed: PDEBase master is 0.1.31 and
PDEBase = "0.1.29"already admits it.Validation
Julia 1.12.6, against PDEBase master plus SciML/PDEBase.jl#101:
The two
WARNING: Imported binding PDEBase.X was undeclared at import timemessages that previously appeared during precompilation are gone.Test groups, all passing:
MOL_Interface1Sol_InterfaceBurgersNote
MOL_Interface1needs SciML/PDEBase.jl#101 to pass for an unrelated reason — an array-variable regression in PDEBase (SciML/PDEBase.jl#100). That is a PDEBase-side issue and not affected by this PR.Ignore until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code
https://claude.ai/code/session_0117aJvytDT3y2jMi5Ng6Q5m