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

Auto format on save not working in windows when there are spaces in directory/folder name. #63

Open
saddamhshovon opened this issue Aug 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@saddamhshovon
Copy link

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
@saddamhshovon saddamhshovon added the bug Something isn't working label Aug 17, 2024
@d8vjork d8vjork self-assigned this Aug 19, 2024
@d8vjork
Copy link
Member

d8vjork commented Aug 19, 2024

Nice discovery! I'll try to solve this one asap

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

2 participants