-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"zig run" pollutes debug output with unexpected messages "LLVM Emit Object... LLVM Emit Object... MachO Flush..." #19647
Comments
I don't really see this as a bug. Maybe there should be a way to hide or enable the message. However, zig does display this whenever you also do |
Zig deletes these strings using standard ansi escape sequences before launching the compiled executable, and it is this runner view not supporting them. Additionally, you can |
Thanks! I agree this could have been labeled a feature request, but unfortunately, I can't change the label now. It would be great if |
Maybe related to #18855 |
It seems that zig build run is more useful compared to zig run, because the latter doesn't understand external dependencies. I'm not sure about its future in more complex projects; perhaps it will be deprecated or reserved for simple shell-like scripts. |
Possibly related concerns #17821 |
Fixed by #20059 |
Zig Version
0.12.0-dev.3644+05d975576
Steps to Reproduce and Observed Behavior
invoke "zig run" on any source file
Expected Behavior
According to "No hidden control flow" principle, it shouldn't output anything which is not a part of a program defined by user. Current approach is very confusing because it hides a first line of the debug output making it looks like the program had no output while it's simply hidden behind "LLVM Emit Object... LLVM Emit Object... MachO Flush..." string and forcing addition of
std.debug.print("\n", .{});
to every program.The text was updated successfully, but these errors were encountered: