-
Notifications
You must be signed in to change notification settings - Fork 0
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
Lazy macro loading seems to be breaking on Julia v1.9.0-rc1 #11
Comments
Hey, I can't reproduce it. julia> versioninfo()
Julia Version 1.9.0-rc1
Commit 3b2e0d8fbc1 (2023-03-07 07:51 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.4.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
Threads: 1 on 4 virtual cores
julia> isdefined(Main, :Unitful)
false
julia> u"m"
m
julia> isdefined(Main, :Unitful)
true |
OK, it seems to be happening since I have the following lines in my using REPL
atreplinit() do repl
if !isdefined(repl, :interface)
repl.interface = REPL.setup_interface(repl)
end
REPL.ipython_mode!(repl)
end This is the IPython mode that v1.9 introduced (see JuliaLang/julia#46474). It may change the environment in REPL. I tried to put these lines before |
I have met a similar issue before, maybe this link will help: KristofferC/OhMyREPL.jl#279 |
Thanks, I will look into it later. |
I believe that the reason for the issue is due to the |
Please try atreplinit() do repl
if !isdefined(repl, :interface)
repl.interface = REPL.setup_interface(repl)
end
REPL.ipython_mode!(repl)
lazy_startup_init!()
end Note, the |
It works for me, thank you! |
I am trying this in my
startup.jl
:But it does not seem to be loaded on Julia v1.9+.
The text was updated successfully, but these errors were encountered: