Prettier.el can get into a broken state sometimes, where all operations hang. This is what's in *prettier (local)*.
C-1
Z0
I think the problem here is that result["cursorOffset"] can be negative which then breaks the response parsing in prettier.el. We should probably ignore negative offsets and not send the C line at all.
I haven't been able to reproduce this reliably so far, but it did happen a couple of times to me, once in a tsconfig.json file and once in a Java source file.
Prettier.el can get into a broken state sometimes, where all operations hang. This is what's in
*prettier (local)*
.I think the problem here is that
result["cursorOffset"]
can be negative which then breaks the response parsing inprettier.el
. We should probably ignore negative offsets and not send theC
line at all.I haven't been able to reproduce this reliably so far, but it did happen a couple of times to me, once in a
tsconfig.json
file and once in a Java source file.