Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it doesn't work at Sublime2.0.2 #63

Open
ayqy opened this issue May 29, 2015 · 1 comment
Open

it doesn't work at Sublime2.0.2 #63

ayqy opened this issue May 29, 2015 · 1 comment

Comments

@ayqy
Copy link

ayqy commented May 29, 2015

I have installed Sublime2.0.2 and the latest version of Node and CSSComb on Win7 & WinXp SP3, but both of them do not work at all.

There's an Error:

File ".\sublime_plugin.py", line 362, in run_
return self.run(edit)
File ".\CSScomb.py", line 35, in run
File ".\CSScomb.py", line 45, in comb
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 842, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7491-7495: ordinal not in range(128)

I fixed it after inserting two lines as follows to exec.py:

reload(sys);
sys.setdefaultencoding(''gbk'');

Now, there's no error, but my css code is not combed by CSSComb as well. That is, running CSSComb has no effect on my code.

CSSComb is a pretty tool and I love it so much, please help me, thank you!

@ayqy
Copy link
Author

ayqy commented Jun 1, 2015

Notice: Don't modify exec.py to attempt to fix UnicodeEncodeError!

Other plugins will be affected, such as HTML-CSS-JS Prettify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant