Sha*_*uch 10 php ide jetbrains-ide phpstorm
PHP Code Sniffer
phpcs: Can not correctly run the tool with parameters:
C:\Users\sa\AppData\Local\Temp\___0.tmp\press_home.module --encoding=utf-8
Possible tool process hangup after 5 sec.
Exclude press_home.module from PHP Code Sniffer analysis.
Run Code Online (Sandbox Code Playgroud)
PhpStorm经常抛出这个消息.知道为什么PhpStorm会出现这个错误吗?
Laz*_*One 10
知道为什么PhpStorm会出现这个错误吗?
极有可能因为用于执行的PHP可执行文件phpcs启用了xdebug - 执行需要更长时间.
两种可能的解决方
确保用于执行的PHP可执行文件phpcs未启用xdebug.例如,您可以完全禁用xdebug ..或者在您的计算机上安装多个PHP,其中默认设置(如果您键入php终端将使用)没有xdebug.
尝试在PhpStorm的设置中增加超时(Settings/Preferences | Languages & Frameworks | PHP | Code Sniffer).在某些系统/设置甚至将超时增加到20+秒(这很多)可能仍然无法解决问题.
从性能的角度来看,#1中描述的解决方案是首选且更可靠(但实现起来更困难,特别是如果您实际上需要本地xdebug).