我正在尝试在 SublimeText2 中使用 SublimeLinter。安装包,node.exe 也是,node.exe 的路径是正确的:
{
"sublimelinter_executable_map": {
"javascript":"C:\\Program Files\\nodejs\\node.exe",
"css":"C:\\Program Files\\nodejs\\node.exe"
}
}
编写简单的代码:
function foo(){
x != hg
а = р
в hghhgg
}
保存并且没有 linter 消息!同时在控制台中我看到了错误:
Traceback (most recent call last):
File ".\sublime_plugin.py", line 190, in on_post_save
File ".\sublime_plugin.py", line 154, in run_timed_function
File ".\sublime_plugin.py", line 189, in <lambda>
File ".\SublimeLinter.py", line 744, in on_post_save
File ".\SublimeLinter.py", line 611, in reload_view_module
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128)
操作系统:Win7 32位