vscode-laravel-pint icon indicating copy to clipboard operation
vscode-laravel-pint copied to clipboard

Formatting no longer works on macOS

Open zepfietje opened this issue 1 year ago • 14 comments

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:

  1. Install the extension.
  2. Open a poorly formatted PHP file in a Laravel project.
  3. Call "Formaat document using Laravel Pint" from the VS Code command palette.
  4. 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

zepfietje avatar Feb 22 '24 08:02 zepfietje

Weird, to me all these format methods works and I'm on a Mac using 1.1.8

d8vjork avatar Feb 22 '24 09:02 d8vjork

Do you use any pint.json config? And what about the pint binary (global or local)? Any modification to the extension config?

d8vjork avatar Feb 22 '24 09:02 d8vjork

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.

zepfietje avatar Feb 23 '24 13:02 zepfietje

I have the same problem. Everything works fine when using vendor/bin/pint. But Format document using Laravel Pint does nothing.

samlinck avatar Mar 21 '24 15:03 samlinck

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

d8vjork avatar Mar 21 '24 16:03 d8vjork

Having the same issue.

Ukesh2010 avatar Mar 26 '24 06:03 Ukesh2010

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

hooch avatar Mar 30 '24 04:03 hooch

Same for me using linux. Nothing happens in developer tools too.

jleonardolemos avatar Apr 10 '24 19:04 jleonardolemos

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.

danielgalanrodriguez avatar Apr 14 '24 08:04 danielgalanrodriguez

Same issue as well :/

gregoryalary avatar Jun 24 '24 09:06 gregoryalary

Same issue here

SilvioLucasDev avatar Jul 09 '24 16:07 SilvioLucasDev

@d8vjork, have you been able to reproduce this issue yet? It seems like a lot of other people are running into the same bug.

zepfietje avatar Jul 09 '24 16:07 zepfietje

same issue here.

yondifon avatar Jul 25 '24 15:07 yondifon

Same here

martin-ro avatar Sep 11 '24 05:09 martin-ro

same here

mangaljptech avatar Oct 10 '24 09:10 mangaljptech