崇高的文本2 phpcs插件python错误

时间:2013-08-28 21:21:35

标签: plugins sublimetext2

我正在使用Sublime Text 2和一些插件。我似乎无法使用Phpcs插件,因为在保存文件后,它给了我一个丑陋的错误:

Writing file /Applications/XAMPP/xamppfiles/htdocs/myProject/application/libraries/Authentication.php with encoding UTF-8
Exception in thread Thread-15:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "./phpcs.py", line 398, in run
File "./phpcs.py", line 128, in get_errors
File "./phpcs.py", line 194, in execute
File "./phpcs.py", line 197, in parse_report
File "./phpcs.py", line 149, in shell_out
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

我也试着查看各自的文件,但我根本不懂python,所以我不知道该怎么做: - /

你能帮忙吗?

1 个答案:

答案 0 :(得分:0)

我最终使用了SublimeLinter插件,该插件提供了我想从phpcs插件中显示的潜在错误功能。

该插件位于THIS GITHUB REPO

希望这可以帮助任何使用phpcs库时遇到问题的人。

@daniel:谢谢你的帮助