-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
move InteractiveUtils to stdlib #25780
Conversation
eac7d29
to
bdfd122
Compare
base/client.jl
Outdated
@@ -419,6 +419,7 @@ function _start() | |||
end | |||
|
|||
if repl | |||
eval(Main, :(using InteractiveUtils)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to load these if the -i
flag is set? Then it will automatically work in IJulia and other things that use julia -i
.
e7e8d4e
to
361f4af
Compare
This should remove the last usage of Pkg in Base. |
41eb402
to
f34a762
Compare
f34a762
to
2ff4f23
Compare
Is |
Ok, if you just need |
Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2)) | ||
catch | ||
buf = PipeBuffer() | ||
versioninfo(buf) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now gives:
WARNING: Base.versioninfo is deprecated: it has been moved to the standard library package `InteractiveUtils`.
Add a `using InteractiveUtils` to your imports..
in module Base
when Base.runtests
fail.
Edit: Not on only on failure, apparently always.
Actually, there is already |
I kept
dump
andwhich
for now.Also deprecated
which(::Symbol)
, since we have generally been removing functions that default to looking inMain
.Moved a few things to more logical places.
_check_bitarray_consistency
is now inTest
. All the code for cpu_info is inSys
. Not sure what to do withBase.runtests
; kept it for now.download
obviously has non-interactive uses, so it stays.clipboard
could go either way.Closes #25751