vscode-magento-wizard icon indicating copy to clipboard operation
vscode-magento-wizard copied to clipboard

Path executable php

Open ljr95 opened this issue 1 year ago • 5 comments

Hi, Thank you very much for your extension.

I work with open vscode in wsl 2 and I use docker to run the different services like php.

I don't want to install php in my wsl2, so at the root of my project I have a ./php file containing: #!/bin/bash docker exec -it php7.4-fpm php $@

This allows me to expose php access for other vscode extensions, like for php intellisense and it works great. Unfortunately this configuration does not work with the extension vscode-magento-wizard.

Here is the configuration: "php.validate.executablePath": "./php", "magentoWizard.tasks.php": "./php",

And the error message from the extension output: `undefined Looks like we don't have PHP executable available at './php'. Please set correct path in the extension settings. Many features would be unavailable without access to PHP executable. Found Magento root at /home/XXX/XXX/magento2

  • Modules: 0
  • Themes: 0
  • Blocks: 0 `

Do you know why this is not working? Thank you in advance for your help,

ljr95 avatar Feb 16 '23 14:02 ljr95