alexanderweiss / nova-prettier

Prettier extension for Nova
MIT License
35 stars 6 forks source link

Error while formatting on save #25

Closed sgkul2000 closed 4 years ago

sgkul2000 commented 4 years ago

Prettier fails to format on save

I have a python code and every time I save it I get a message in the upper right corner which says that format on save failed. the following screenshot is the error message that I get. but the thing is prettier is able to format when I use keyboard shortcut. so its a format on save issue

Screenshot 2020-10-04 at 8 21 27 PM
alexanderweiss commented 4 years ago

Thanks for reporting this! This happens when Prettier doesn't support the language you're trying to format (like Python). You're not getting it when you use the keyboard shortcut because it doesn't even try to format it. This will be fixed in the next release — it won't bug you about it anymore.

sgkul2000 commented 4 years ago

Than you for the quick response. Good to know that nova extension development of Prettier is so active. Have a great day!!

On 04-Oct-2020, at 10:24 PM, Alexander Weiss notifications@github.com wrote:

Thanks for reporting this! This happens when Prettier doesn't support the language you're trying to format (like Python). You're not getting it when you use the keyboard shortcut because it doesn't even try to format it. This will be fixed in the next release — it won't bug you about it anymore.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexanderweiss/nova-prettier/issues/25#issuecomment-703283750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJ6VNDO62UBR2F3G5PBS5TSJCSENANCNFSM4SDX5KQQ.