[ALOY-235] Color codes showing up in TiStudio output
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-09-24T19:02:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium Studio |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-08-29T09:41:13.000+0000 |
Updated | 2018-03-07T22:25:49.000+0000 |
Description
Error output coming from Alloy shows up in TiStudio with embedded color codes:
[90m2012-08-29 12:42:00 -- [WARN ] [39m[33mNo "app/config."json file found[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[37mGenerating to [33m/Users/tlukasavage/Development/alloy/test/projects/Harness/Resources[39m[36m from [39m[33m/Users/tlukasavage/Development/alloy/test/projects/Harness/app[39m[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[36mcompile:trigger-> [33mpre:compile[39m[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[37mCopying lib from: [33m/usr/local/lib/node_modules/alloy/Alloy/lib[39m[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[36mCopying [33m/usr/local/lib/node_modules/alloy/Alloy/lib/alloy[39m[36m to [39m[33m/Users/tlukasavage/Development/alloy/test/projects/Harness/Resources[39m[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[36mCopying [33m/usr/local/lib/node_modules/alloy/Alloy/lib/alloy.js[39m[36m to [39m[33m/Users/tlukasavage/Development/alloy/test/projects/Harness/Resources[39m[39m
[90m2012-08-29 12:42:00 -- [INFO ] [39m[36mNow parsing view index.xml...[39m
[90m2012-08-29 12:42:00 -- [ERROR] [39m[31mSplitWindow <Require> child at position 0 must contain a single Window[39m
the "logger" class should handle removing the color codes automatically, but there appears to be a few manual additions of colors in the alloy output. We need to dig in and find all the manual output coloring and disable it when alloy is launched via the ti.alloy compiler plugin.
Colors get stripped when run with ti.alloy compiler plugin. I also formatted the output so that TiStudio will highlight it with its own coloring scheme when appropriate.