Visual Studio Code: Spawn UNKNOWN

2019-07-17 18:49发布

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:

1条回答
三岁会撩人
2楼-- · 2019-07-17 18:50

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

查看更多
登录 后发表回答