我刚刚为 Atom 安装了 php-linter。我很确定我正确配置了 php.exe 的路径。但不知何故,php-linter 仍然存在问题。我从控制台复制了错误代码。德语是英文:“系统找不到给定的路径”。
(anonymous) @ C:\Users\timsi\.atom\packages\linter\lib\linter-registry.js:159
C:\Users\timsi\.atom\packages\linter\lib\linter-registry.js:159 [Linter]
Error running PHP Error: Das System kann den angegebenen Pfad nicht finden.
at ChildProcess.<anonymous> (C:\Users\timsi\.atom\packages\linter-
php\node_modules\sb-exec\lib\index.js:56:20)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:885:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
Frome Atom 配置:
"linter-php":
executablePath: "C:/Program Files(x86)/PHP/php.exe"
我的 php.exe 路径的屏幕截图
php.exe 的路径