Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: Spawn UNKNOWN

There are multiple other posts reporting this, but they are related to javascript frameworks, etc.

I get this error when opening any .php extension file and the error pops up at the top and it always blocks the tabs, very annoying.

enter image description here

Similar posts, but does not solve:

  • visual studio code nodejs request 'launch': cannot launch target (reason: spawn node ENOENT)
  • Error: spawn UNKNOWN
  • Node-webkit child spawn UNKNOWN error
like image 219
user3108268 Avatar asked Oct 20 '25 04:10

user3108268


1 Answers

check your config file (F1 + config and select settings json) and search for:

"php.validate.executablePath": null,

I have the same error and it was because I have pointing to the wrong file:

"php.validate.executablePath": "C:\\xampp\\php\\php.ini"

it must point to (in my case):

"php.validate.executablePath": "C:\\xampp\\php\\php.exe",

example

like image 73
Brian Baloa Avatar answered Oct 21 '25 19:10

Brian Baloa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!