-
Notifications
You must be signed in to change notification settings - Fork 18
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
Can't format with Pint extension #72
Comments
I have the same issue here. System info:
settings.json:
Symptoms:
Note: |
Edit: Verified that the issue is related to the latest release |
Thanks for that, it's working for me too with version |
This might be related to #67 |
Can't replicate anyway on my Windows 10 machine using 1.3.0 @shawinigan @mselmanyildirim Mind sharing the path to the file you guys got issues with? |
Same error. Changing the version work for me. |
@d8vjork sorry for delayed answer. For the file path, I can't format any of the files in the project, so I can share a random one: To test further, I have created a fresh project (so this time laravel version is When I rollback to version Edit: I don't have a customized |
@mselmanyildirim Weird, I'll probably need to dig deeper on this as on my 2 laptops doesn't happen. Having last version on the extension |
@mselmanyildirim That's when you set the Then in the "Output" tab should appear "Laravel Pint" on the dropdown of the right side |
@d8vjork Thanks. Tried with debug logs but seems nothing useful there:
|
@mselmanyildirim Does it output something else when saving? |
@d8vjork
But when saving with
|
Describe the bug
When trying to format a PHP file with the pint extension it doesn't work.
When I'm doing it with through this command it works : php ./vendor/bin/pint
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should format the file.
Screenshots
![Image](https://private-user-images.githubusercontent.com/94711949/408738951-328193c3-fd10-4bd7-b497-6e19083c1c44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODIxNjksIm5iZiI6MTczOTU4MTg2OSwicGF0aCI6Ii85NDcxMTk0OS80MDg3Mzg5NTEtMzI4MTkzYzMtZmQxMC00YmQ3LWI0OTctNmUxOTA4M2MxYzQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50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a9rTDL6eoI)
When selecting option "format file with... "
it gives this error:
These are the errors in the extensions logs:
2025-01-31 16:50:20.732 [error] [open-southeners.laravel-pint] provider FAILED
2025-01-31 16:50:20.733 [error] TypeError: The "file" argument must be of type string. Received null
at normalizeSpawnArguments (node:child_process:549:3)
at spawn (node:child_process:789:13)
at re.run (c:\Users\pmbaril.vscode\extensions\open-southeners.laravel-pint-1.3.0\out\extension.js:7:10545)
at wi.formatFile (c:\Users\pmbaril.vscode\extensions\open-southeners.laravel-pint-1.3.0\out\extension.js:9:77352)
at gs.provideEdits (c:\Users\pmbaril.vscode\extensions\open-southeners.laravel-pint-1.3.0\out\extension.js:9:75578)
at N$.provideDocumentFormattingEdits (file:///c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:138:135051)
Environment:
Additional context
Here's all the things I've tried:
The text was updated successfully, but these errors were encountered: