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

Somethings feels wrong with Fable console output (logs are not added in the correct place) #3695

Open
MangelMaxime opened this issue Jan 12, 2024 · 0 comments

Comments

@MangelMaxime
Copy link
Member

Description

I don't know what changed but when running processus in parallels like Vite + Fable, I feel like something has changed.

You can see on the video below that at first Fable output the log in the correct place, and then when it reports on the compilation status it prints at the top of the console and probably even a bit above.

CleanShot.2024-01-12.at.17.37.57.mp4

Repro code

Any code that launch Fable and Vite in parallel from a .NET project / script.

You can for example do it using Fun.Build.

#r "nuget: Fun.Build, 1.0.5"

open Fun.Build

pipeline "Watch" {

    stage "Watch" {
        workingDir  "demo"
        paralle

        run "dotnet fable --watch --sourceMaps --noCache"
        run "npx vite"
    }

    runIfOnlySpecified
}

tryPrintPipelineCommandHelp ()

Expected and actual results

Logs should be printed at the end of the console (I am pretty sure it was doing that before).

A workaround is to use --verbose flag which switch Fable into a mode which doesn't rewrite the console lines.

Related information

  • Fable version: 4.9.0
  • Operating system: OSX
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

1 participant