DaemonMode.jl
DaemonMode.jl copied to clipboard
Different output from DaemonMode when compared to native julia
I tried to run a file containing the following
println("Hello World")
import Pkg
Pkg.status()
The output for DaemonMode (async=false; using runargs) looks like this:
StatusHello World
`/..../Project.toml`
[d749ddd5] DaemonMode v0.1.10
and the output from julia looks like this
Hello World
Status `/..../Project.toml`
[d749ddd5] DaemonMode v0.1.10
It might be a race condition. I am using julia 1.7-rc3
It seems that the different in the output is because Pkg write to the default error output instead of the default output. In order to print the output DaemonMode print in an async way, so it is not guarantee that one is first than the other one.
This is related with a delay in the output that DaemonMode produces and I have detected, but I still does not know how to solve it. Anyway, thanks for the advise.