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

Formatting on save stop when saving again #332

Open
Kadrian opened this issue Aug 15, 2022 · 0 comments
Open

Formatting on save stop when saving again #332

Kadrian opened this issue Aug 15, 2022 · 0 comments

Comments

@Kadrian
Copy link

Kadrian commented Aug 15, 2022

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 Kadrian changed the title Formatting on save stop working after some time Formatting on save stop when saving again Aug 16, 2022
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

1 participant