Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?

I have a development environment based in docker.

Everytime that I open VSCode I get this message:

Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable.

Somebody know how to set php.validate.executablePath in this case?

I have no idea how to do it.

like image 701
Nicolas Takashi Avatar asked May 03 '17 19:05

Nicolas Takashi


People also ask

What is php validate executablePath?

php. validate. executablePath : points to the PHP executable on disk. Set this if the PHP executable is not on the system path.


1 Answers

Here is a screenshot.

  • Don't forget to escape \
  • You don't have to add it to the Path

set php.validate.executablePath snapshot

like image 177
Mohamed Elrashid Avatar answered Sep 19 '22 21:09

Mohamed Elrashid