我想我可能有适合您的解决方案,因为我刚刚遇到了同样的问题并解决了它。
"Building..."
首先,通过深入 Sublime Text 2 控制台 ( )找出导致RubyTest 错误的原因View > Show Console
。
这是我的控制台输出:
Running rspec spec/requests/static_pages_spec.rb -l15
Traceback (most recent call last):
File "./sublime_plugin.py", line 337, in run_
File "./exec.py", line 154, in run
File "./exec.py", line 45, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
reloading /Users/Jonathan/Library/Application Support/Sublime Text 2/Packages/User/RubyTest.last-run
从这里开始,事实证明 ST2 尝试评估所有 shell 表达式。
从同一个链接,这是我修复它的方法:转到并从第 45 行的循环开始Library > Application Support > Sublime Text 2 > Packages > Default
编辑:exec.py
for
for k, v in proc_env.iteritems():
path_vars = os.path.expandvars(v)
if isinstance(path_vars, unicode):
path_vars = path_vars.encode(sys.getfilesystemencoding())
proc_env[k] = path_vars
希望这能解决您的问题!