You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I faced with the problem, that prettier@3.1.1 and higher causes the problem, that VSCode doesn't format Pug files with prettier. If we install prettier3.1.0 and lower it works fine. When we install prettier@3.1.1 and higher, we see next indicator in footer panel of VSCode:
When we try to format it with command Format Document, we will have the following notification:
I also tried to set default formatter in VSCode settings and it didn't not help me.
If we try to format .pug files from CLI, it works perfect
The text was updated successfully, but these errors were encountered:
ladown
changed the title
Bug:
Bug: VSCode fails to format pug files with prettier@3.1.1 and higher
Jan 15, 2024
Plugin Version
v3.0.0
Prettier Version
v3.1.1
Which frameworks are affected?
Node Version
v20.10.0
Which operating systems have you used?
Prettier config
Input
Output or Error
Expected Output
Additional Context
Hello!
I faced with the problem, that
prettier@3.1.1
and higher causes the problem, thatVSCode
doesn't formatPug
files withprettier
. If we installprettier3.1.0
and lower it works fine. When we installprettier@3.1.1
and higher, we see next indicator in footer panel ofVSCode
:When we try to format it with command
Format Document
, we will have the following notification:I also tried to set default formatter in
VSCode
settings and it didn't not help me.If we try to format
.pug
files from CLI, it works perfectThe text was updated successfully, but these errors were encountered: