-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bug: VSCode fails to format pug files with [email protected] and higher #478
Comments
Can you identify if this is an issue with the plugin, or maybe with the prettier version https://github.com/prettier/prettier/blob/main/CHANGELOG.md#311 |
I tested this issue with other plugins and figured out, that its connected with the |
Hello, @mhabsaoui ! Its a problem with prettier extension as i can see. Here you can learn more - prettier/prettier-vscode#3253 As for me, i found a solution to add path to prettier config in VSCode JSON settings -- |
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
[email protected]
and higher causes the problem, thatVSCode
doesn't formatPug
files withprettier
. If we installprettier3.1.0
and lower it works fine. When we install[email protected]
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: