SublimeLinter:PHP linting 不起作用 [英] SublimeLinter: PHP linting not working
问题描述
PHP linting 在 SublimeLinter 中不起作用,尽管它说 PHP:loaded
在控制台中.我在 Windows 上工作.此外,如果我打开命令面板,除了 Extract Annotations
之外没有其他选项.有没有人遇到同样的问题并知道解决方案?
PHP linting is not working in SublimeLinter though it says PHP: loaded
in the console. I'm working on Windows. Additionally, there are no options if I open the Command Palette except for Extract Annotations
. Did anyone have the same problem and knows the solution?
推荐答案
此外,请确保您已在用户设置中提供了 php.exe 的路径-
Additionally, make sure you've given the path to php.exe in your user settings -
(prefs>pkg settings>sublimelinter>settings - user)
(prefs>pkg settings>sublimelinter>settings - user)
应该是这样的(如果你的路径是C:\xampp\php\php.exe"):
should look like this (if your path is "C:\xampp\php\php.exe"):
{sublimelinter":真的,sublimelinter_executable_map":{php":/xampp/php/php.exe"}}
{ "sublimelinter": true, "sublimelinter_executable_map": { "php":"/xampp/php/php.exe" } }
这篇关于SublimeLinter:PHP linting 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!