Skip to content
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

Different output from DaemonMode when compared to native julia #46

Open
feanor12 opened this issue Nov 24, 2021 · 1 comment
Open

Different output from DaemonMode when compared to native julia #46

feanor12 opened this issue Nov 24, 2021 · 1 comment

Comments

@feanor12
Copy link
Contributor

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 feanor12 changed the title DIfferent output from DaemonMode when compared to native julia Different output from DaemonMode when compared to native julia Nov 24, 2021
@dmolina
Copy link
Owner

dmolina commented Nov 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants