Skip to content
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

Could not apply prettier #59

Open
AlexanderArvidsson opened this issue Jul 10, 2019 · 1 comment
Open

Could not apply prettier #59

AlexanderArvidsson opened this issue Jul 10, 2019 · 1 comment

Comments

@AlexanderArvidsson
Copy link

AlexanderArvidsson commented Jul 10, 2019

When trying to run prettier-js or when saving with prettier-js-mode, all I am getting is the following:

Wrote c:/Users/xxx/AppData/Local/Temp/prettiergc1tvy.jsx
Could not apply prettier

The error buffer only says prettier errors: followed by nothing.
Is there any way to see what errors is causing this?
The file it says it wrote is also not there, I assume because they are deleted right after?

I am on windows and have installed diff and verified that it works.
Running prettier cli on the file returns the formatted code, the issue is just that it fails to apply the diff I guess.
Using emacs version GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13
Using Doom-emacs with default config and prettier-emacs added.

I'll set everything up the same on my arch laptop, it's probably just an issue with Windows.

@t1anchen
Copy link

I got similar situation and resolved by using a newer version of diff. hopefully it could help

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

No branches or pull requests

2 participants