Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base.active_repl isn't defined in Julia 1.11+ even with julia -i #55376

Open
timholy opened this issue Aug 4, 2024 · 2 comments
Open

Base.active_repl isn't defined in Julia 1.11+ even with julia -i #55376

timholy opened this issue Aug 4, 2024 · 2 comments
Labels
regression 1.11 Regression in the 1.11 release

Comments

@timholy
Copy link
Sponsor Member

timholy commented Aug 4, 2024

xref https://github.com/timholy/CodeTracking.jl/actions/runs/10239765827/job/28325729062?pr=130

$ julia +beta -i --startup=no -e "using InteractiveUtils, REPL; @async(Base.run_main_repl(true, true, false, true, false)); sleep(2); @show Base.active_repl"
ERROR: UndefVarError: `active_repl` not defined in `Base`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:42
 [2] macro expansion
   @ show.jl:1237 [inlined]
 [3] top-level scope
   @ none:1@ none:1

The error doesn't happen on Julia 1.10 and earlier.

timholy added a commit to timholy/CodeTracking.jl that referenced this issue Aug 4, 2024
@timholy timholy added the regression 1.11 Regression in the 1.11 release label Aug 4, 2024
timholy added a commit to timholy/CodeTracking.jl that referenced this issue Aug 4, 2024
@vtjnash
Copy link
Sponsor Member

vtjnash commented Aug 5, 2024

2 seconds might not be long enough? You are relying on an awful lot of unpredictable behavior putting that behind a timer. Maybe you can use an atreplinit to signal an Event right after the global gets assigned?

@timholy
Copy link
Sponsor Member Author

timholy commented Aug 10, 2024

julia +beta -i --startup=no -e 'using InteractiveUtils, REPL; @async(Base.run_main_repl(true, true, false, true, false)); while !isdefined(Base, :active_repl) sleep(1); end; @show Base.active_repl'

hangs "forever." I don't think it's an amount-of-delay issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression 1.11 Regression in the 1.11 release
Projects
None yet
Development

No branches or pull requests

2 participants