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

Control codes displayed in the output #494

Open
bardt opened this issue Aug 6, 2022 · 0 comments
Open

Control codes displayed in the output #494

bardt opened this issue Aug 6, 2022 · 0 comments

Comments

@bardt
Copy link

bardt commented Aug 6, 2022

Sublime Text Version

Sublime Text 4 (Build 4126)

Rust Enhanced Version

2.25.0

Operating system

OS Name macOS Monterey
Version 12.5

Expected behavior

Automatic build output should be equivalent to the output when running manually in a terminal:

$ cargo run --example mesh2d                                                                                                                                                                                                                                                                        
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/examples/mesh2d`
2022-08-06T08:31:27.264081Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M1", vendor: 0, device: 0, device_type: DiscreteGpu, backend: Metal }

Actual behavior

Codes for control symbols are visible:

[Running: cargo run --example mesh2d --message-format=json]
   Compiling bevy v0.7.0 (/Users/bardt/Projects/rust/bevy)
    Finished dev [unoptimized + debuginfo] target(s) in 2.98s
     Running `target/debug/examples/mesh2d`
�[2m2022-08-06T08:26:34.586134Z�[0m �[32m INFO�[0m �[2mbevy_render::renderer�[0m�[2m:�[0m AdapterInfo { name: "Apple M1", vendor: 0, device: 0, device_type: DiscreteGpu, backend: Metal }

(In the output, I see <0x1b> instead of �)

I suppose the difference is in the --message-format=json flag

Steps to reproduce

  1. Clone Bevy repo https://github.com/bevyengine/bevy.git, check out v0.7.0 tag
  2. Open bevy/examples/2d/mesh2d.rs file
  3. Run Build With: RustEnhanced - Automatic command, watch the output
  4. Run cargo run --example mesh2d in a terminal, compare the outcome
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