vim-prettier
vim-prettier copied to clipboard
prettier hang on formatting a bigger file
Do you want to request a feature or report a bug?
Bug
What is the current/expected behavior?
It takes more than 15-30 seconds to format a markdown file having lines more than 800+ lines and the problem is that my nvim hangs for all this time.
FYI: I tried to format the same file via command line i.e., prettier --write file.md it took only 2-3 seconds.
What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-beta
What version of prettier are you using - (output of :PrettierCliVersion) ?
2.6.2
What is your prettier executable path - (output of :PrettierCliPath) ?
prettier
Did this work in previous versions of vim-prettier and/or prettier ?
I don't know!
Try copying contents of below gist to a file say file.md and try formatting it to reproduce the behaviour.
THE CRITICAL THINGS is that I lost some data when i tried to abort the process few times and some of the file's data got deleted and i lost data! :(
https://gist.githubusercontent.com/sahilrajput03/42af1b0ae1da918768093e6684be36cb/raw/9e9e5817cd6080692a37ff90fd23076c604f3289/bug-prettier.md
Please help and debug!!
I am a huge fan of this extension.