prettier / prettier-emacs

Minor mode to format JS code on file save

Home Page:http://jlongster.com/A-Prettier-Formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not apply prettier

AlexanderArvidsson opened this issue · comments

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.