PhpStorm on Windows and WSL : ALT+ENTER (fix the whole file) only works with Php-Cs-Fixer version <= 2.16.4 (composer global)


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.



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.


I am confused too. When i use the WSL interpreter nothing is happening :

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 :

2021-10-26 11:15:01,737 [2282732]   INFO - tellij.wsl.fs.WslContentLoader - Remote call <fleet.api.FsApi#readFile> has failed: invalid type: string "/", expected internally tagged enum Root
fleet.rpc.RpcException: Remote call <fleet.api.FsApi#readFile> has failed: invalid type: string "/", expected internally tagged enum Root
    at fleet.rpc.RpcException$Companion.callFailed(RpcFailure.kt:88)
    at fleet.rpc.client.RpcClient.requestFailed(RpcClient.kt:307)
    at fleet.rpc.client.RpcClient.acceptMessage(RpcClient.kt:259)
    at fleet.rpc.client.RpcClient.access$acceptMessage(RpcClient.kt:36)
    at fleet.rpc.client.RpcClient$start$2$1$receiver$1.invokeSuspend(RpcClient.kt:84)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.base/java.util.concurrent.ThreadPoolExecutor$
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$
    at java.base/ Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$
    at java.base/

Thanks, it appears to be a bug in our WSL support then:
Unfortunately, it doesn't seem like there's any workaround available at the moment.


Please sign in to leave a comment.