Skip to content

Conversation

@N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Sep 23, 2025

I'm not 100% sure, but I think that any console php command on Windows requires a path to php at the beginning.

Without this the Pint command doesn't work on Windows.

@TonsiTT
Copy link

TonsiTT commented Oct 2, 2025

Would this pr also fix this issue when i have ddev environment?


2025-10-02 17:40:36.982 [error] Pint Error:

Could not open input file: /home/dan/project/vendor/bin/pint
Failed to run php /home/dan/project/vendor/bin/pint app/Models/Product.php: exit status 1

where as if i run this manually it works:
php vendor/bin/pint app/Models/Product.php:

@N1ebieski
Copy link
Contributor Author

@TonsiTT I don't know. I'm using laradock in devcontainer mode.

@damms005
Copy link
Contributor

damms005 commented Oct 7, 2025

@TonsiTT does using DDEV as PHP env not fix this for you?

image

@TonsiTT
Copy link

TonsiTT commented Oct 8, 2025

@TonsiTT does using DDEV as PHP env not fix this for you?
image

Yeah i have ddev selected but despite that it gives the error when using pint

@damms005
Copy link
Contributor

damms005 commented Oct 8, 2025

@TonsiTT you should open an issue then, so it is easy to track it

@TonsiTT
Copy link

TonsiTT commented Oct 10, 2025

@TonsiTT you should open an issue then, so it is easy to track it

I will wait for this to be merged. Have a feeling this would solve the path issue for ddev as well

@DouglasAR01
Copy link

Using WSL sometimes throws this error:
Failed to save '[PhpFileName].php': The content of the file is newer. Please compare your version with the file contents or overwrite the content of the file with your changes
Maybe it is related?

@TonsiTT
Copy link

TonsiTT commented Oct 26, 2025

Using WSL sometimes throws this error: Failed to save '[PhpFileName].php': The content of the file is newer. Please compare your version with the file contents or overwrite the content of the file with your changes Maybe it is related?

i used to have this on non php stuff. this is defo a vscode issue. just restart vscode and/or manually save that file once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants