atom不能运行php文件,Atom PHP lint无法运行Windows 10

我有新的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)

wTsld.png

解决方法:

我刚刚经历了同样的事情.这是我的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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值