You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reproduce this with compiler version 1c186dc. But this is an old version before 1.9.0.
With a current compiler build (1.9.2) there is no error. So this was probably fixed somewhere down the line.
For a long time I thought this was a Windows-only issue, but I guess it isn't?
It looks like when the interpreter compiles the ::exit call that it invokes explicitly, the STDOUT inside the body is somehow different from the top-level one, so STDOUT gets initialized twice. Commenting out STDOUT.flush makes the spec no longer crash. I have no idea why STDERR doesn't have the same issue.
When executing
crystal i spec/std/file_spec.cr
(from the root of the project), it crashes after running successfully all the tests.Maybe this is related to the fluke we see in CI?
My setup
Entire stacktrace
The text was updated successfully, but these errors were encountered: