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
[eval] Sys.stdout does not work when using compilation server #9359
Comments
I guess this may be pretty annoying for eval-based tools. |
I'd argue it's worth resolving for 4.1 as it's pretty close to haxe hello world in vscode – I came across it while making an example for a newbie, simplest thing seemed to be to use the |
I just came across this one. Any news? @Simn? |
I don't understand how this is supposed to work. If anything uses |
Well, actually, if I'm not hung up on the idea of referencing the actual |
* reorganize compiler/server frontend * try some piping see #9359 * clean up some more * try to get subprocess piping right * actually we need the shell... * hold back on pipe changes because this isn't working right * move some more stuff around * a little more * try to dodge for now * try something * some more cleanup * $currentyear skip ci
Reproduced with 4.0.5 and development branch
Main.hx
build.hxml
In vscode, run build task (Terminal -> Run build task)
When running a haxe file that uses the compilation server, i.e.
haxe --run Main --connect 3000
, writes to stdout and stderr will not be printed. Ifflush()
is used the output is printed in the compilation-sever terminal rather than the main terminal.It might seem weird to use --connect and --run together but this is the default behavior when using vscode so it's a common occurrence in that workflow (i.e if you use the vscode haxe build task this will happen)
Attached repro files, including some scripts to show the flush() weirdness
eval-stdout-bug.zip
The text was updated successfully, but these errors were encountered: