Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find PHP binary #11

Closed
andrei-dascalu opened this issue Feb 6, 2022 · 2 comments
Closed

Unable to find PHP binary #11

andrei-dascalu opened this issue Feb 6, 2022 · 2 comments
Labels
needs more info This issue needs more info

Comments

@andrei-dascalu
Copy link

Hi,

I'm not sure whether this is a plugin problem or something else, but I've run out of ideas.

I've migrated from another compose plugin to this but I'm unable to make it work as when I try to run any command, I get messages like this:

> Executing task: "/usr/local/bin/composer" diagnose -d '<path to my project>' <

env: php: No such file or directory
The terminal process "/usr/local/bin/zsh '-c', '"/usr/local/bin/composer" diagnose -d '<path to my project>''" terminated with exit code: 127.

Terminal will be reused by tasks, press any key to close it.

Path to composer is ok, I can execute it from VSCode's terminal (or any other terminal). php is in path.

I'm not quite sure what to set so that PHP is also recognised (but also unsure who needs the binary? is it the companion plugin?)

Thanks

@faelv
Copy link
Owner

faelv commented Feb 6, 2022

Hello @andrei-dascalu, could you provide the following info?

  • Your OS
  • VSCode version (run code -v)
  • Composer version (run composer -V)
  • PHP version (run php -v)

Could you confirm that PHP is actually in the PATH env variable? Sometimes the binary is just named, for example, php71 and php (without the version) is missing.

You can also try setting the complete path to composer and php binaries in settings, respectively:

  • composerCompanion.executablePath
  • php.validate.executablePath

Changing the setting terminal.integrated.persistentSessionReviveProcess to never may help if the above didn't.

@faelv faelv added the needs more info This issue needs more info label Feb 11, 2022
@faelv
Copy link
Owner

faelv commented Mar 9, 2022

closing due to inactivity, reopen if necessary

@faelv faelv closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more info
Projects
None yet
Development

No branches or pull requests

2 participants