-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
|
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,
}, |
Continuing on the conversation as I'm having the exact same issue as @QuentinLuc. @d8vjork I have the above config already in my settings file, and in a different, non-Laravel project I'm getting the below error: |
@jakezneal Are you using Windows? |
@d8vjork I'm using macOS (14.4.1) and VS Code (1.94.2) |
我也有同样的情况 |
I have Laravel Herd installed and this error was showing up. I think there are issues with the path to the PHP executable. I ended up create a symbolic link so I could give vscode a path that didn't have a space in it. |
I was facing the same issue. OS: Ubuntu 22.04.2 LTS |
@devNoiseConsulting how did you do this? I'm facing the same issue in mac and using Herd.
|
I found the issue on my side. It's because in VS code, I opened the project from a folder with a space, e.g. When I opened the project from a folder without space, e.g. |
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
Environment:
The text was updated successfully, but these errors were encountered: