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

ESC Character Appearing in Output #245

Open
redbassett opened this issue Dec 10, 2014 · 9 comments
Open

ESC Character Appearing in Output #245

redbassett opened this issue Dec 10, 2014 · 9 comments

Comments

@redbassett
Copy link

I am running into an issue similar to what some people posted finding in #33. When I run tests, the test output contains a bunch of what I think are colour codes and [ESC] characters instead of the usual progress bar. None of the fixes listed in #33 worked for me, primarily because I am not using rspec.

screen shot 2014-12-10 at 17 48 41

@t3hk0d3
Copy link

t3hk0d3 commented Mar 26, 2015

+1 Same shit for me

2015-03-26 16 33 06

Sublime 3 build 3082

@daytonn
Copy link

daytonn commented Apr 17, 2015

Pass the --no-color flag:

 "run_rspec_command": "rspec --no-color {relative_path}"

@redbassett
Copy link
Author

Are there still no known resolutions for non-rspec testing? Especially solutions that keep the colours?

@daytonn
Copy link

daytonn commented Apr 17, 2015

I don't use test unit but try this:

"run_ruby_unit_command": "ruby -Itest --no-use-color {relative_path}",

@daytonn
Copy link

daytonn commented Apr 17, 2015

The output should still be in color, at least they are for rspec. There's a language file that syntax highlights the output so no escape codes are needed.

@redbassett
Copy link
Author

Sadly, no, it doesn't fix it. But thanks for the note on syntax highlighting! I didn't even think about the fact that the colour came from the syntax highlighting rather than the actual test scripts.

@redbassett
Copy link
Author

Unfortunately, even after disabling all output colouring in Minitest, I am still seeing those characters in the output, however it is down to just a single ESC and BEL in the last few lines:

screen shot 2015-05-04 at 00 26 17

@jamesfwz
Copy link

Hi, any solution? Thanks.

@arefaslani
Copy link

use this package: https://github.com/aziz/SublimeANSI

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

5 participants