Closed fonsp closed 1 month ago
It looks like you wanted to use a Base.BufferStream there, but implemented a buggy version of it as IOListener?
Thanks for taking a look @vtjnash, so you do think that the async reading from the IOBuffer is causing the issue?
Will I get in trouble for using internal API? Maybe https://github.com/JuliaPackaging/SimpleBufferStream.jl is a good option?
I am uncertain of the quality of that package, so I cannot recommend for or against it. The documentation seems lacking though. BufferStream has been meant to be public for a long while though, if that is any consolation
Pluto does not work on Julia 1.11 because of an error in our Pkg log capture system, but I can't figure out what it is. It seems to be caused by using a
LoggingExtras.ConsoleLogger
with anIOListener
as its io argument.When you launch a notebook, you get this error:
(
pkg> test Pluto
will also show them)The stacktrace points to this
@info
call, which is handled by this logger.We read the contents of the IOBuffer async here, maybe this is causing a race condition?
I tried to recreate this bug with this script:
But this did not cause the error...