我有新的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 zip并在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. (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)
解决方法:
我刚刚经历了同样的事情.这是我的config.cson文件.我正在使用wamp进行本地PHP测试,所以我的路径看起来与php.exe不同,但概念是一样的.
"*":
core:
...
welcome:
showOnStartup: false
linter: {}
"linter-php":
executablePath: "C:/wamp/bin/php/php6.5.12/php.exe"
希望这可以帮助! (BTW ……在我的config.cson文件中只是额外的东西,没有帮助)
标签:php,atom-editor
来源: https://codeday.me/bug/20190829/1761676.html