PHP代碼嗅探器PhpStorm拋出一個錯誤phpcs
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.
PhpStorm頻繁拋出此消息。任何想法爲什麼PhpStorm顯示此錯誤?
極有可能的原因是用於執行PHP可執行'phpcs'已啓用Xdebug的。 2可能的解決方案:1)以某種方式確保它沒有啓用xdebug(即有幾個PHP安裝,其中默認的一個沒有xdebug)2)增加PhpStorm設置的超時 – LazyOne
@LazyOne感謝您的有用評論。我正在解決方案1。禁用了xdebug。現在錯誤不會到來。 –