open-southeners / vscode-laravel-pint

🍺 Integrates Laravel Pint into your VSCode projects for automatic code formatting
https://marketplace.visualstudio.com/items?itemName=open-southeners.laravel-pint
MIT License
83 stars 17 forks source link

Format on autosave not being applied #54

Closed calebeso closed 9 months ago

calebeso commented 10 months ago

Describe the bug The format on autosave mode its not being applied, even when Ctrl + Shift + P -> Format document using Laravel Pint

To Reproduce 1 - Install latest version of the extension 2 - Extension settings 3 - Check enabled - Check Log debug - Check Run in Laravel Sail

Expected behavior To format the file when saved or using the Ctrl + Shift + P option...

Environment:

 {
    "laravel-pint.enable": true,
    "laravel-pint.enableDebugLogs": true,
    "laravel-pint.fallbackToGlobalBin": false,
    "laravel-pint.runInLaravelSail": true
}

Additional context When I run directly through the command line with ./vendor/bin/pint it just works fine!

bmalen commented 10 months ago

Also not working on Windows. Possibly the same issue as https://github.com/open-southeners/vscode-laravel-pint/issues/52

d8vjork commented 9 months ago

This is because the Laravel Sail thing doesn't fully work. Related to #34

d8vjork commented 9 months ago

Closing because repeated issue, please track this on the other issue. If you think is not related go ahead and reopen this