PhpStorm on Windows and WSL : ALT+ENTER (fix the whole file) only works with Php-Cs-Fixer version <= 2.16.4 (composer global)
Hi,
Php-cs-fixer only works with the version 2.16.4 and older on PhpStorm.
Php-cs-fixer Installed with : composer global require friendsofphp/php-cs-fixer:2.16.4
System : Windows 10 pro 21H1 19043.1288
WSL : Ubuntu 20.04
Php (installed with chocolatey) : 7.4.7
Maybe this post will help some peoples who try to make php-cs-fixer works with PhpStorm :)
Best regards.
Please sign in to leave a comment.
I am confused. Are you using the Windows interpreter or the WSL one?
It seems to work fine with the WSL interpreter and PHP CS Fixer 3.2.1.
https://drive.google.com/file/d/1CAwf7Z1voG6mRlwugucgxrs6-hTnHgFk/view?usp=drivesdk
I am confused too. When i use the WSL interpreter nothing is happening :
https://drive.google.com/file/d/1vaqv5uLntWJ5rS1nqRm0evLkHd0Ga90r/view?usp=sharing
Download the video if you don't have the 1080p setting.
And yes for make this working i use the Windows interpreter.
In idea.log i found this spammed when i save the file i try to fix with php-cs-fixer :
Thanks, it appears to be a bug in our WSL support then: https://youtrack.jetbrains.com/issue/IDEA-280317
Unfortunately, it doesn't seem like there's any workaround available at the moment.