Sublime Forum

Encoding (?) problems in Console (macOS only) - TERM environment variable not set

#1

Hello.

I use Sublime on Linux and macOS. This error only occurs on macOS.
When I build and run any of my Rust files or run a Python script in my Console I get this error message:

What do I need to do to fix this? This is happening in vanilla Sublime meaning there’s not a single Plugin/Package installed.

Thanks so much in advance!

0 Likes

#2

Maybe the following stackoverflow thread can help you solving the issue.

0 Likes

#3

The error message “TERM environment variable not set” is now gone, but all the gibberish is still there. Does anybody even know what all this means? Is it formatting? Encoding? …?

0 Likes

#4

If I had to guess, I’d say this is something like a format encoding. Unix as an example uses such ]33m tokens for color highlighting. Maybe this is something like that, which ST’s build system does not decode as it reads the output from your build-tool as is.

0 Likes

#5

https://packagecontrol.io/packages/ANSIescape

0 Likes

#6

Thanks for your reply. Unfortunately this didn’t work. It’s for directly working with ANSI code. However my problem exists for every type of code that I start from the built-in console.

0 Likes