ESLint PRESUBMIT error output appears malformed. |
||
Issue descriptionI recently noticed that some PRESBUMIT messages appear malformed when viewed via a URL, for example https://logs.chromium.org/v/?s=chromium%2Fbuildbucket%2Fcr-buildbucket.appspot.com%2F8941350768013031296%2F%2B%2Fsteps%2Fpresubmit%2F0%2Fstdout. I am also pasting below (see weird_encoding.png screenshot), in case the URL above stops working. ** Presubmit ERRORS ** [4m/b/swarming/w/ir/cache/builder/chromium_presubmit/src/chrome/test/data/webui/extensions/extension_detail_view_test.js[24m [2m302:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m304:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m313:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m318:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m343:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m345:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m354:7[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m360:9[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [2m361:9[22m [31merror[39m Unexpected var, use let or const instead [2mno-var[22m [31m[1m✖ 9 problems (9 errors, 0 warnings) [22m[39m Attaching correct_encoding.png screenshot where it shows how this normally appears through a terminal.
,
Jul 12
I recall that the error output looked fine a few months ago, so maybe this is related to the migration to LUCI/LogDog?
,
Jul 26
Please make sure that the tool is not printing ANSI color codes unexpectedly.
,
Jul 26
@maruel: When I run it locally the output of the tool looks as in the attached correct_encoding.png. I am not sure how to further test what you are asking.
,
Jul 26
The invocation of the tool happens at https://cs.chromium.org/chromium/src/tools/web_dev_style/js_checker.py?l=81-85. Perhaps removing the --color flag would fix the issue?
,
Jul 26
Or perhaps changing the --format flag to a different option from https://eslint.org/docs/user-guide/formatters/. But having said that, the question still remains, on why this used to work before but does not work anymore. |
||
►
Sign in to add a comment |
||
Comment 1 by hinoka@chromium.org
, Jul 11