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

Add exit code to Base.compilecache error message #57455

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

kpamnany
Copy link
Contributor

Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.

@kpamnany
Copy link
Contributor Author

CI failure is from ranges, so unrelated.

@kpamnany kpamnany merged commit fa3ca0f into master Feb 18, 2025
4 of 7 checks passed
@kpamnany kpamnany deleted the kp-add-exitcode branch February 18, 2025 19:37
kpamnany added a commit to RelationalAI/julia that referenced this pull request Feb 18, 2025
Minor tweak to the error message: embed the exit code of the Julia child
process that failed to compile the package.
@@ -3288,7 +3288,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
if p.exitcode == 125
return PrecompilableError()
else
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)).")
Copy link
Member

@vtjnash vtjnash Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it could be a bit confusing?

julia> p = run(`./julia -e 'ccall(:jl_raise, Cvoid, (Cint,), 23)'`, wait=false); wait(p)

julia> p.exitcode
0

julia> Base.process_status(p)
"ProcessSignaled(2)"

Copy link
Contributor Author

@kpamnany kpamnany Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. So what I want is to embed $(Base.process_status(p)) instead of just $(p.exitcode)?

kpamnany added a commit to RelationalAI/julia that referenced this pull request Feb 18, 2025
…215)

Minor tweak to the error message: embed the exit code of the Julia child
process that failed to compile the package.
kpamnany added a commit that referenced this pull request Feb 18, 2025
kpamnany added a commit to RelationalAI/julia that referenced this pull request Feb 19, 2025
kpamnany added a commit to RelationalAI/julia that referenced this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants