-
Notifications
You must be signed in to change notification settings - Fork 90
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
[BUG] Dry run reporting unpretty files when all files match styles #37
Comments
Pretty weird, sorry I wasn't able to investigate, will take a couple of days more. Do you have an idea what causes this? Maybe git changes the newline chars or something? There must be some kind of change. |
Honestly I have no clue. Prettier outputs that it all matches, then the action reports a failure. I ended up switching to my own action in the end. |
Hi guys! Maybe it is caused by this block on entry point?
|
…npretty Fixes Issue #37 [BUG] Dry run reporting unpretty files when all files match styles
@fsz-codeshop Can you please test it with the new push in dev? I tried your fix a couple of times now and it doesn't seem to work (https://github.com/creyD/prettier_test/runs/2313102123) |
Hi @creyD, you are indeed right. It is not working with the dev branch. I am getting:
I have forked and worked on top of the main branch for that dry-run fix.
Maybe it is something else of the other changes? |
Furthermore, checking the provided link (https://github.com/creyD/prettier_test/runs/2313102123) it seems that it worked as expected
Did I miss something? |
It states that it worked, but there was a unpretty file and it even showed it in the "Files:" statement. |
Ok. I think I got it. Anyway, I reopened the PR (#49) with the change of the logic to handle the cases using --write + dry-run and --check + dry-run. I have forked the prettier_test and ran some tests and it seems it is working as expected now. If you can check it =) |
What exactly happened?
When performing a dry run, Prettier reports that all files match the code style, but this action reports unpretty files.
See: https://github.com/flarumite/simple-spoilers/runs/1731327132#step:4:19
How did it look?

The text was updated successfully, but these errors were encountered: