dmolina / DaemonMode.jl

Client-Daemon workflow to run faster scripts in Julia
MIT License
275 stars 16 forks source link

Different output from DaemonMode when compared to native julia #46

Open feanor12 opened 2 years ago

feanor12 commented 2 years ago

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

dmolina commented 2 years ago

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.