我有新的Atom安装。安装linter软件包,然后安装linter-php。
在config.cson文件中,我有以下内容
"*":
"exception-reporting":
userId: "c545e431-a953-b271-c123-c021c950953b"
welcome:
showOnStartup: false
core: {}
editor:
invisibles: {}
tabLength: 4
linter: {}
"linter-php":
executablePath: "C:/php/"我从http://windows.php.net/downloads/releases/php-5.6.16-Win32-VC11-x86.zip下载了PHP并在C:/php中提取
有人能帮我解决这个问题吗。我没有发现我遗漏的任何东西。
更新
这就是我要犯的错误
Error: 'C:/php/' is not recognized as an internal or external command,
operable program or batch file.
at parameters.exit (C:\Users\Raheel\.atom\packages\linter-php\node_modules\atom-linter\lib\helpers.js:70:20)
at triggerExitCallback (C:\Users\Raheel\AppData\Local\atom\app-1.2.4\resources\app.asar\src\buffered-process.js:213:47)
at ChildProcess.<anonymous> (C:\Users\Raheel\AppData\Local\atom\app-1.2.4\resources\app.asar\src\buffered-process.js:235:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

发布于 2016-04-07 05:09:20
我也经历过同样的事情。这是我的config.cson文件。我使用wamp进行本地PHP测试,所以我的路径看起来与php.exe不同,但概念是相同的。
"*":
core:
...
welcome:
showOnStartup: false
linter: {}
"linter-php":
executablePath: "C:/wamp/bin/php/php6.5.12/php.exe"希望这能有所帮助!(顺便说一下.只是我的config.cson文件中的一些额外的东西,不会有任何帮助)
https://stackoverflow.com/questions/34046670
复制相似问题