Atom PHP-Linter 设置:系统找不到路径
Atom PHP-Linter Setup: System can't find path
我刚刚为 Atom 安装了 php-linter。我很确定我将路径配置为 php.exe 正确。但是不知何故 php-linter 仍然存在问题。我从控制台复制了错误代码。德语是英语:"The system can't find the given path".
(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)
来自 Atom 配置:
"linter-php":
executablePath: "C:/Program Files(x86)/PHP/php.exe"
我的 php.exe
路径的屏幕截图
通往php.exe
的路径
看起来像是一个简单的拼写错误:在您的配置中,“Program Files”和“(x86)”之间缺少 space
我刚刚为 Atom 安装了 php-linter。我很确定我将路径配置为 php.exe 正确。但是不知何故 php-linter 仍然存在问题。我从控制台复制了错误代码。德语是英语:"The system can't find the given path".
(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)
来自 Atom 配置:
"linter-php":
executablePath: "C:/Program Files(x86)/PHP/php.exe"
我的 php.exe
路径的屏幕截图通往php.exe
的路径看起来像是一个简单的拼写错误:在您的配置中,“Program Files”和“(x86)”之间缺少 space