vim-prettier icon indicating copy to clipboard operation
vim-prettier copied to clipboard

Formatting on save stop when saving again

Open Kadrian opened this issue 2 years ago • 0 comments

Do you want to request a feature or report a bug?

bug

What is the current/expected behavior?

expected: prettier keeps auto-formatting on save and if it's not successful, it reports an error actual: prettier formats on auto-save properly when saving for the first time, but then saving a second time, the file isn't formatted anymore, also doesn't do anything when running :Prettier manually and doesn't report any error.

Reproduce:

  • I open a file
  • I create a formatting issue
  • I save
  • Formatting fixes the issue
  • I create the same formatting issue again
  • I save
  • Prettier doesn't format anymore

How can I debug this further?

I'm working mostly in .tsx files (using styled component syntax as well)

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.5.1

What is your prettier executable path - (output of :PrettierCliPath) ? /Users/kai/path/to/my/project/node_modules/.bin/prettier

Did this work in previous versions of vim-prettier and/or prettier ? I don't know, this is the first time I'm using it

Kadrian avatar Aug 15 '22 19:08 Kadrian