Closed Grawl closed 5 years ago
Same issue here. Looks SublimeGrunt or a 3rd party tool has problem with horizontal ellipsis (…
) UTF symbol in my SASS source files.
People advise to add @charset "UTF-8";
to the top of problematic files: https://github.com/thoughtbot/bourbon/issues/224
But — does anybody know what is the cause of the problem?
After some using of IntelliJ-based IDEs I figured that this problem causes because of missing locale
variables in current shell.
You can check it:
➜ ~ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
➜ ~
But if you have no one en_US.UTF-8
on the right, there is a problem.
So you can just add export LC_ALL=en_US.UTF-8
and/or export LANG=en_US.UTF-8
strings into your .bashrc
(or .zshrc
if you using ZSH like me) and viola! Problem solved.
But I don't know about Sublime shell. If you cannot fix it with solution from above, you can try to find some .<…>rc
file (or with other name, I dunno~) and add locale strings to them.
That also heavily depends on how you start ST. If you start it from the command line, it should inherit the current environment. But if I start it from the OS X Dock, it doesn't (even the PATH variable is wrong). Can you confirm that it works when ST is started from the command line, @Grawl and @machal ?
Repository was moved to https://github.com/sptndc/sublime-grunt Please re-file any issues that still exist.
I trying to launch my existing
grunt
project with your Sublime plugin and it failed:If I will launch
grunt serve
with regular Terminal app it will work. What the heck?