vscode icon indicating copy to clipboard operation
vscode copied to clipboard

How to setting php.validate.executablePath?

Open karl20888 opened this issue 11 years ago • 26 comments

How to setting php.validate.executablePath?

karl20888 avatar Nov 24 '15 08:11 karl20888

If the php executable is not on your path you can use the setting to point to the php executable. For example

php.validate.executablePath="C:\\apps\\php\\php.exe"

dbaeumer avatar Nov 24 '15 09:11 dbaeumer

@dbaeumer Thank you!

karl20888 avatar Nov 25 '15 02:11 karl20888

Not Working untitled

Shirish-FrontEndDev avatar Dec 05 '15 08:12 Shirish-FrontEndDev

I am sorry the file ext was wrong

Shirish-FrontEndDev avatar Dec 05 '15 08:12 Shirish-FrontEndDev

What another settings do I need to debug php code?

mattid89 avatar Aug 15 '16 06:08 mattid89

There is currently no out of the box support to debug PHP. You might want to look if an extension is available.

dbaeumer avatar Aug 15 '16 10:08 dbaeumer

thanks!

mattid89 avatar Aug 16 '16 03:08 mattid89

Try that: php.validate.executablePath="C:/apps/php/php.exe"

Hettar avatar Oct 13 '16 12:10 Hettar

How would I achieve this on my Mac running Mamp?

I'm trying "php.validate.executablePath": "~/Applications/MAMP/bin/php/php7.0.12/bin"

TRE8 avatar Nov 30 '16 05:11 TRE8

code error

It doesn't work for me.

Exevium avatar Mar 15 '17 16:03 Exevium

hi, open file setting.json { "php.validate.executablePath": "C:\xampp\php\php.exe", "php.executablePath": "C:\php7.1\php.exe" } :)

dastani avatar May 02 '17 22:05 dastani

on mac,add setting to setton.json: "php.validate.executablePath": "/usr/local/php5-7.1.4-20170506-100436/bin/php"

cp1001 avatar May 10 '17 17:05 cp1001

@only1shirish super helpful, I couldn't make sense of anything anyone was saying.

muganwas avatar Jun 30 '17 12:06 muganwas

I have tried everything on here but it is still not debugging or running or doing anything really

Nathan-Hanlon avatar Jul 05 '17 14:07 Nathan-Hanlon

@Nathan-Hanlon which OS are you on?

dbaeumer avatar Jul 06 '17 14:07 dbaeumer

Windows 10

Get Outlook for Androidhttps://aka.ms/ghei36


From: Dirk Bäumer [email protected] Sent: Thursday, July 6, 2017 3:22:03 PM To: Microsoft/vscode Cc: Nathan Hanlon; Mention Subject: Re: [Microsoft/vscode] How to setting php.validate.executablePath? (#533)

@Nathan-Hanlonhttps://github.com/nathan-hanlon which OS are you on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode/issues/533#issuecomment-313410556, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcedpqPJnA9vMioCPl0ZmO31J6fd7G0uks5sLO2LgaJpZM4GoKjv.

Nathan-Hanlon avatar Jul 06 '17 14:07 Nathan-Hanlon

I went to my workspace settings and typed php.validate.executablePath: "c://Users/User01/data/php.exe" but its not working even then.

8sam avatar Jul 27 '17 06:07 8sam

I've tried a few paths for PHP binaries on OS X, none of them seem to work. Visual Studio is finding PHP 5.6 somewhere on my computer and it's sticking to it, regardless of my settings.

The error I get is "The language server needs at least PHP 7 installed. Version found: 5.6.30".

Here are the different paths I've tried to give it:

"php.validate.executablePath": "/Applications/MAMP/bin/php/php7.1.1/bin/php",
"php.validate.executablePath": "/Applications/MAMP/bin/php/php7.1.1/bin/",
"php.validate.executablePath": "/usr/local/Cellar/php71/7.1.0_11/bin/",
"php.validate.executablePath": "/usr/local/Cellar/php71/7.1.0_11/bin/php",

Atom uses MAMP's php binary just fine. Visual Studio Code ain't having it. ¯_(ツ)_/¯

screen shot 2017-08-04 at 2 53 21 pm

knucklejames avatar Aug 04 '17 18:08 knucklejames

is not working for me ... sorry !!!

icwgiam avatar Aug 28 '17 07:08 icwgiam

trying to set mine

iamkingsleyf avatar Aug 29 '17 05:08 iamkingsleyf