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

Rust compiler output includes escape characters for color #11

Open
the10thWiz opened this issue Jan 20, 2025 · 0 comments
Open

Rust compiler output includes escape characters for color #11

the10thWiz opened this issue Jan 20, 2025 · 0 comments

Comments

@the10thWiz
Copy link

Initially brought to my attention in rwf2/Rocket#2901, related to #3.

Partial compiler output:

error: ␛[1;34m[␛[0m␛[1;32mnote␛[0m␛[1;34m] ␛[0m␛[1;39mexpected argument named `name` here␛[0m
 --> src/main.rs:4:9
  |
4 | fn hello(other: &str) -> String {
  |         ^^^^^^^^^^^^^

Reproduction

  • WSL (Ubuntu) in Windows terminal (claims to be xterm-256color).
  • rustc 1.84.0 (9fc6b4312 2025-01-07)

See the initial Rocket issue for a code example that produces this error.

This is most likely related to the rustc version, since rustc 1.86.0-nightly (049355708 2025-01-18) does not display the same issue.

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