question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PHP CS Fixer: spawn php-cs-fixer ENOENT. executablePath not found.

See original GitHub issue

Well, I did set "php.validate.executablePath": "D:\\wamp64\\bin\\php\\php7.0.10\\php.exe".

In short, this extension doesn’t work out of the box.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

18reactions
amadeanncommented, Jan 13, 2018

I also had this issue. To summarize all the steps mentioned above, this worked for me:

  1. Install php-cs-fixer with composer global require friendsofphp/php-cs-fixer
  2. Add Composer\vendor\bin to PATH (it should be something like C:\Users[YOUR USER NAME HERE]\AppData\Roaming\Composer\vendor\bin
  3. Add "php-cs-fixer.executablePathWindows": "php-cs-fixer.bat" to your settings.json
12reactions
tanftwcommented, Mar 10, 2018

Just want to let someone which have problem like me, if you’ve installed php-cs-fixer via Composer, try set php-cs-fixer.executablePath and php-cs-fixer.executablePathWindows to php-cs-fixer.bat (no need full path since Composer bin dir has already set in system PATH).

Read more comments on GitHub >

github_iconTop Results From Across the Web

spawn php-cs-fixer ENOENT. executablePath not found
This is what worked out for me on Windows 10, modify if you have different folder structure. "phpcbf.executablePath": ...
Read more >
vscode-php-cs-fixer - Visual Studio Marketplace
vscode-php-cs-fixer. This extension adds support for running php-cs-fixer fix on PHP files in Visual Studio Code.
Read more >
PHP CS Fixer | PhpStorm Documentation - JetBrains
You are working with PHP CS Fixer version 2.8.0 and later. The directory containing the PHP engine executable must be added to the...
Read more >
spawn php-cs-fixer ENOENT. executablePath not found.
PHP CS Fixer : spawn php-cs-fixer ENOENT. executablePath not found. ... Well, I did set "php.validate.executablePath": "D:\\wamp64\\bin\\php\\php7.
Read more >
Usage - PHP Coding Standards Fixer
The fix command¶ ; --allow-risky option (pass ; yes or ; no ) allows you to set whether risky rules may run. Default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found