-
-
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
Allow hiding stderr during compilecache #37596
Allow hiding stderr during compilecache #37596
Conversation
Context (just for record): Current implementation of (It means that |
@@ -1210,7 +1210,7 @@ end | |||
|
|||
const MAX_NUM_PRECOMPILE_FILES = 10 | |||
|
|||
function compilecache(pkg::PkgId, path::String) | |||
function compilecache(pkg::PkgId, path::String, show_errors::Bool = true) |
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.
I think it'd be better to comment that show_errors
is an "internal" interface for Pkg.precompile
. It's a bit unclear why we have this from just looking at the code in Base.
@c42f I think you have opinions/thoughts on nested error message "handling" (in this case just ignoring). I think it's an OK implementation (though obviously not super elegant) but I wonder if you have some alternative ideas. |
I haven't followed the larger story very closely but this seems fine to me, for now. Other options would probably be a lot more complicated. |
Yeah, that's my thought, too. Thanks for taking a look at it. |
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.
LGTM. I think it's pretty safe to merge but I guess I'll wait for a few days just in case someone (ping @vtjnash and @JeffBezanson) wants to take a look at it.
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.
Looks good to me! Rebase and I say merge.
f4b67cd
to
05c2ec1
Compare
@staticfloat Rebased. Is the aarch64 issue relevant? |
Required for the error handling in JuliaLang/Pkg.jl#2021
cc. @tkf