You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: the extention works fine when using locally. It seems the issue arises when using any kind of VS-Code remote such as WSL or Docker container. The log output doesn't show anything useful. I have no idea how to debug. Only the failure message Extension 'Prettier - Code formatter' cannot format... appears at the bottom :)
flexchar
changed the title
Cannot format PHP files
Cannot format files in VS Code remote environments (WSL, Docker)
Dec 4, 2019
Summary
Prettier for VS Code is not formatting the php code.
Github Repository to Reproduce Issue
Any setup with Prettier and PHP plugin and any PHP file.
Steps To Reproduce:
Expected result
File should be formatted as if were using CLI.
Actual result
VS Code shows message
Extension 'Prettier - Code formatter' cannot format '_ide_helper.php'
Additional information
It works just perfect if using CLI. Image above displays CLI charming yet VS Code failing.
That clearly suggests that the PHP plugin and the Prettier itself are fine.
Also to note, I have used for good while setup where plugin-php would be installed inside the extension's folder. That also doesn't work anymore. :(
VS Code Version: 1.40.2 [latest]
Prettier Extension Version: 3.11.0 [latest]
OS and version: Windows 10 1903 but working with WSL 1 Ubuntu 18
Prettier Log Output
The text was updated successfully, but these errors were encountered: