vscode-laravel-pint
vscode-laravel-pint copied to clipboard
Auto format on save not working in windows when there are spaces in directory/folder name.
Auto format on save is not working when there are spaces (ex. 'Coders Lab') in directory or folder name.
❌ The following does not work:
["DEBUG" - 9:07:05 PM] No config matches for workspace
"c:\\Users\\sadda\\Desktop\\Projects\\Coders Lab\\php\\bm-autogas-backend"
["DEBUG" - 9:07:05 PM] Formatting file(s) using Pint
{
"command": "php vendor/bin/pint c:\\Users\\sadda\\Desktop\\Projects\\Coders Lab\\php\\bm-autogas-backend\\app\\Http\\Controllers\\Admin\\Station\\StationController.php"
}
["INFO" - 9:07:05 PM] Formatting completed in 433ms.
When there aren't any spaces it is working fine.
✅ The following works:
["DEBUG" - 8:59:35 PM] No config matches for workspace
"c:\\Users\\sadda\\Herd\\permission"
["DEBUG" - 8:59:35 PM] Formatting file(s) using Pint
{
"command": "php vendor/bin/pint c:\\Users\\sadda\\Herd\\permission\\app\\Http\\Controllers\\LoginController.php"
}
["INFO" - 8:59:35 PM] Formatting completed in 340ms.
Environment:
- Windows 11 with Laravel Herd
- php 8.3
- VSCode 1.92.1
- Extension version 1.2.1