-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Troubleshooting guide #198
Comments
Thanks for that! A troubleshooting guide is definitely on my radar. There are some other common problems that would be a good fit for that too. |
I'm sure this is probably a "duh" thing to all the rest of you, lol, but for us newbs out there, perhaps add a note in the troubleshooting guide to ensure that Windows users are running in a bash shell. I couldn't get any patches to apply at all via the terminal running Xampp on a Windows 10 PC, until I started the bash shell. Then it worked fine. Not difficult at all, but also something so obvious to experienced developers that little things like these get missed in documentation. :) |
Some Remarks from my side : the Thrown exception should / could also contain the used value for install_path and a link to the planed "Trouble Shooting" page . f.e.:
(or link to this issue :-) for me this would have helped (found it by reading the code .. ) : This plug in is doing this:
Try these commands manually to get more details, why your patch could not be applied. Check wrong path settings, (see $install_path) , missing slashes, different line breaks, The path of the patch files must normaly start from the Root directory of the composer project. Some Examples could be helpful: if you using this to patch a TYPO3 core file and have this in your composer.json,
the files must be referenced like this: and not starting with: see this :
|
I've made a note to include a troubleshooting guide in the 2.x documentation. |
(this is for 2.x) Basic troubleshooting guide here: https://docs.cweagans.net/composer-patches/troubleshooting/guide/ I also added a composer command (
Hope this helps! |
Could be worth having a troubleshooting guide somewhere, I had an issue today where all patches would apply perfectly fine locally but failed on CI inside of the docker container. For me, the version of patch was outdated and I fixed it with
Hopefully this helps others.
The text was updated successfully, but these errors were encountered: