-
Notifications
You must be signed in to change notification settings - Fork 46
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
Race in MDX output buffering? #424
Comments
The diff between 2.2.1 and 2.3.0 is pretty short and the only thing I can think of is 4738880 and 00701ac where I replaced constructing strings in memory with formatters. You could try reverting these commits and see if it solves the issue. This makes me a bit unhappy, since that shows that the code is surprisingly fragile and has triggered some race condition. |
I've now seen this with 2.2.1 too, so I guess it was something else. |
I suspect this is something to do with seeking after the block has finished and not preventing it from continuing to write. The failing test-case is missing a
Produces (you might have to play with the timing):
|
Closing as I guess it's not worth protecting against this in MDX. |
Since updating to MDX 2.3.0, I sometimes see output appearing in the wrong place. For example, I just got this with the Eio tests:
Here, MDX seems to want to insert some output right at the start of the file, before any code blocks!
I haven't investigated further - has anything changed recently that might cause this?
The text was updated successfully, but these errors were encountered: