vscode-laravel-pint
vscode-laravel-pint copied to clipboard
Formatting no longer works on macOS
Describe the bug
When using "Format document using Laravel Pint", "Format Document", or "Format On Save", PHP files are no longer formatted using the extension. Running ./vendor/bin/pint manually works just fine. I noticed this issue in the last couple weeks. Managed to fix it briefly by uninstall and reinstall the extension (IIRC), but it's back to broken again.
To Reproduce
Steps to reproduce the behavior:
- Install the extension.
- Open a poorly formatted PHP file in a Laravel project.
- Call "Formaat document using Laravel Pint" from the VS Code command palette.
- Watch as nothing happens.
Expected behavior
I expect the extension to format the file using Laravel Pint.
Screenshots
—
Environment:
- Operating system: macOS
- IDE / version: VSCode 1.86.2
- Extension version: 1.1.8
- Extension's config:
"laravel-pint.enable": true,
Additional context
—
Weird, to me all these format methods works and I'm on a Mac using 1.1.8
Do you use any pint.json
config? And what about the pint binary (global or local)? Any modification to the extension config?
I don't use a pint.json
config, have Pint configured on a per-project basis (so as dependency in composer.json
). No modifications to extension.
I have the same problem. Everything works fine when using vendor/bin/pint
. But Format document using Laravel Pint
does nothing.
I tried to replicate but still no luck, will probably do on a new install
https://github.com/open-southeners/vscode-laravel-pint/assets/2331052/84bc0c84-37d2-4c5b-9fd2-de4eedc94080
Having the same issue.
Same issue, running vendor/bin/pint
formats code as expected. But formatting from within VSC, nothing happens. This was with 1.2.0. Tried installing earlier versions but VSC reports CorruptZip: end of central directory record signature not found
Same for me using linux. Nothing happens in developer tools too.
Same issue here. Nothing happens when formatting the document using Laravel Pint from VSC command palette.
I use the project's pint.json
config with a local installation of the binary.
There is nothing strange in the output. Just the common message Formatting completed in XXms
Environment:
- IDE / version: VSCode 1.88.1
- Extension version: 1.2.0
For now I manage to get it working by:
- Reinstalling the extension (Uninstall-Install)
- Deleting and adding back the VSC config in the json file
settings.json
Let's see if it happens again.
Same issue as well :/
Same issue here
@d8vjork, have you been able to reproduce this issue yet? It seems like a lot of other people are running into the same bug.
same issue here.
Same here
same here