Skip to content

Conversation

@kpamnany
Copy link
Member

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

@kpamnany
Copy link
Member 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.
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
Member 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
nickrobinson251 pushed a commit to RelationalAI/julia that referenced this pull request Feb 26, 2025
…215)

Minor tweak to the error message: embed the exit code of the Julia child
process that failed to compile the package.
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.

4 participants