我正在尝试使用代码嗅探器配置我的崇高,但在控制台中显示此错误:
[Phpcs] C:\wamp\bin\php\php5.4.16 -l -d display_errors=On X:\classes\activity.class.php
[Phpcs] cwd: C:\Users\mag
Exception in thread Thread-6:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\threading.py", line 484, in run
File ".\phpcs.py", line 396, in run
File ".\phpcs.py", line 128, in get_errors
File ".\phpcs.py", line 344, in execute
File ".\phpcs.py", line 347, in parse_report
File ".\phpcs.py", line 149, in shell_out
File ".\subprocess.py", line 633, in __init__
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Acesso negado
我的工作站配置是:
Windows 7 32 位,WampServer 2.4(32 位和 PHP 5.4),Sublime Text 版本 2.0.2 Build 2221
我的 phpcs.sublime-settings 是配置:
{
"show_debug": true,
"extensions_to_execute": ["php"],
"extensions_to_blacklist": [],
"phpcs_execute_on_save": true,
"phpcs_show_errors_on_save": true,
"phpcs_show_gutter_marks": true,
"phpcs_outline_for_errors": true,
"phpcs_show_errors_in_status": true,
"phpcs_show_quick_panel": true,
"phpcs_php_prefix_path": "C:\\wamp\\bin\\php\\php5.4.16\\php.exe",
"phpcs_commands_to_php_prefix": [],
"phpcs_sniffer_run": true,
"phpcs_command_on_save": true,
"phpcs_executable_path": "C:\\wamp\\bin\\php\\php5.4.16\\phpcs.bat",
"phpcs_additional_args": {
"--standard": "PEAR",
"-n": ""
},
"php_cs_fixer_on_save": false,
"php_cs_fixer_show_quick_panel": false,
"php_cs_fixer_executable_path": "",
"php_cs_fixer_additional_args": {
"--level": "all"
},
"phpcs_linter_run": true,
"phpcs_linter_command_on_save": true,
"phpcs_php_path": "C:\\wamp\\bin\\php\\php5.4.16",
"phpcs_linter_regex": "(?P<message>.*) on line (?P<line>\\d+)"
}