snowkit / sublime_flow

Sublime Text support for Haxe flow build tool
5 stars 1 forks source link

'ESC' characters in build output #11

Closed jonathanhirz closed 7 years ago

jonathanhirz commented 8 years ago

screenshot 2016-03-27 23 36 10 I don't know if this is just a theme setting, but some light googling leads me to believe this is ANSI character encoding in the build output not being displayed correctly. Is there a way to fix this on the flow side, or is this something Sublime or a plugin can fix?

ruby0x1 commented 8 years ago

This comes from hxcpp, it's supposed to detect when color is supported, and not emit it when it's not.

I don't have these in my sublime on any of my mac/windows/linux machines, even from fresh installs, so I'm not entirely sure where yours are coming from. flow, sublime_flow and sublime_haxe don't mention color at all, so it's not configured by the build workflow.

Also when I run in terminal I get the colors, in sublime I don't.

You can set the HXCPP_NO_COLOUR define (or pass -nocolor in the hxcpp flags) to force it off, but it is strange that it's enabled from sublime somehow.

jonathanhirz commented 8 years ago

The weird part is that sometimes I see these ESC characters, sometimes I don't. I'm pretty sure when I don't, there's no colors, but it's so infrequent it's hard to say. I do see some color when building in Terminal, but it's not really important to me, so I'll try out the no color options.

ruby0x1 commented 8 years ago

You can set it using flow config as a user-specific default for all flow projects if you don't want to lug it around to every .flow file you use.

jonathanhirz commented 8 years ago

If I set -nocolor in the build/flags node, it says error: unknown option

ruby0x1 commented 8 years ago

It's project.build.hxcpp.flags if talking to hxcpp directly. The other is haxe flags.

jonathanhirz commented 8 years ago

ah, yes that works great! Now trying to figure out the flow config so this can just be a default.

actually, I can just add this flag to my default project folder. Thanks for the help!