DaemonMode.jl icon indicating copy to clipboard operation
DaemonMode.jl copied to clipboard

Different output from DaemonMode when compared to native julia

Open feanor12 opened this issue 4 years ago • 1 comments

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

feanor12 avatar Nov 24 '21 23:11 feanor12

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.

dmolina avatar Nov 25 '21 18:11 dmolina