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

Close pipe during precompilation #343

Merged
merged 1 commit into from
Jan 21, 2023
Merged

Close pipe during precompilation #343

merged 1 commit into from
Jan 21, 2023

Conversation

timholy
Copy link
Member

@timholy timholy commented Jan 21, 2023

Fixes #342

@codecov-commenter
Copy link

Codecov Report

Merging #343 (184b24d) into master (a3dcfd3) will decrease coverage by 7.40%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #343      +/-   ##
==========================================
- Coverage   40.05%   32.65%   -7.40%     
==========================================
  Files          10       10              
  Lines        1106     1084      -22     
==========================================
- Hits          443      354      -89     
- Misses        663      730      +67     
Impacted Files Coverage Δ
src/Cthulhu.jl 33.68% <ø> (-4.70%) ⬇️
src/interpreter.jl 37.62% <0.00%> (-40.60%) ⬇️
src/reflection.jl 19.48% <0.00%> (-12.99%) ⬇️
src/codeview.jl 55.78% <0.00%> (-2.45%) ⬇️
src/ui.jl 50.00% <0.00%> (-2.18%) ⬇️
src/callsite.jl 39.38% <0.00%> (-1.30%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@timholy
Copy link
Member Author

timholy commented Jan 21, 2023

Failures on nightly seem independent of this PR.

@vtjnash
Copy link
Contributor

vtjnash commented Jan 21, 2023

The error here is possibly a more sinister one, that a lack of a reader means this code probably does not run to completion. Closing the Pipe merely destroys the error channel too for the REPL

timholy added a commit that referenced this pull request Jan 22, 2023
This switches to SnoopPrecompile and uses more careful handling of
pipes to ensure tasks run to completion (see comment in #343).
timholy added a commit that referenced this pull request Feb 3, 2023
This switches to SnoopPrecompile and uses more careful handling of
pipes to ensure tasks run to completion (see comment in #343).

Co-authored-by: Jameson Nash <[email protected]>
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.

Precompilation hangs on nightly
3 participants