我正在使用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,所以我不知道该怎么办:-/
你能帮帮忙吗?
发布于 2013-09-10 23:51:57
我最终使用了SublimeLinter插件,它提供了我想从phpcs插件中获得的显示潜在错误功能。
该插件位于THIS GITHUB REPO中。
希望这篇文章能帮助那些在使用phpcs库时遇到问题的人。
@daniel:感谢您的帮助
https://stackoverflow.com/questions/18498429
复制相似问题