Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executable not readable or lacks permissions for Laravel Pint. #64

Open
QuentinLuc opened this issue Aug 28, 2024 · 2 comments
Open

Executable not readable or lacks permissions for Laravel Pint. #64

QuentinLuc opened this issue Aug 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@QuentinLuc
Copy link

Describe the bug

Hi! The extension works really great on Laravel projects. However, it's also enabled for other NodeJS projects and so I'm getting this error in the Output window of VSCode:
["ERROR" - 11:52:58] Executable not readable or lacks permissions for Laravel Pint.

Expected behavior

Shouldn't throw this error for non PHP Laravel files

Screenshots

Screenshot 2024-08-28 at 11 54 47

Environment:

  • Operating system: MacOS
  • IDE / version: : 1.92.2 (Universal) - Extension version 1.2.1
@QuentinLuc QuentinLuc added the bug Something isn't working label Aug 28, 2024
@taha-moghaddam
Copy link

composer require laravel/pint --dev fixed my problem

@d8vjork
Copy link
Member

d8vjork commented Sep 3, 2024

This might be an early discovery of the pint command not finding it, but you're right shouldn't run on any other file

Did you enable this only of PHP files on your VS Code config?

"[php]": {
        "editor.defaultFormatter": "open-southeners.laravel-pint",
        "editor.formatOnSave": true,
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants