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

后端 未结 13 1343
既然无缘
既然无缘 2021-01-30 08:47

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.

13条回答
  •  迷失自我
    2021-01-30 09:21

    I had the same problem but found the fix here.

    In Windows:

    1. Go To System Properties
    2. Go To Advanced Tab
    3. Click "Environment Variables"
    4. Select Path
    5. Add a new path that points to your php 7 executable:

提交回复
热议问题