2015-12-02 41 views
3

我有Atom的全新安裝。安裝了linter包,然後安裝了linter-php。Atom PHP lint無法運行Windows 10

在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.<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) 

enter image description here

+0

你確定php.exe是在c:\ php中,而不是在c:\ php \ php-5.6 0.16-Win32的VC11-86? – dev0

+0

是的,我確定。所有的PHP文件都直接在C:/ php –

+0

我更新了問題,並放置了文件文件結構的屏幕截圖 –

回答

5

我剛剛經歷同樣的事情去了。這是我的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文件中額外的東西,這將不會有幫助)

+0

也可能是64位版本,但這也適用於我, executablePath:「C:/wamp64/bin/php/php6.5.12/php.exe」 – Mikeys4u

相關問題