我刚为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的路径
答案 0 :(得分:0)
看起来像一个简单的拼写错误:在你的配置中,“Program Files”和“(x86)”之间缺少空格