-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Prettier Pug Plugin: Not formatting as expected. #2347
Comments
It's worth mentioning that So any of the plugin versions bundled with Vetur wouldn't be able to handle this option. What's interesting is that apparently you've been able to use your own newer version of |
@lehni Yes, that is correct. Am I missing something? |
Line 24 in 20eb42e
I'm a little bit curious why this isn't using the latest 1.7.0, cause it uses |
I'm not sure what happens when plugins are deployed to the VSCode marketplace. Probably the version gets set in stone and the files in |
We probably all are missing something at the moment |
Will release in the next version. Note that you can install @Shinigami92 Thanks for fixing the issues! |
@octref https://github.com/vuejs/vetur/runs/1212892807#step:10:629 Something weird is going on, I cannot directly see what the issue is 🤔 |
@Shinigami92 Lol, thanks for letting me know. The issue is funny. I have EDIT: Those two plugins have conflicting versions. One is I'll write some code to safeguard against this and open an issue for prettier. |
@octref funny to cross paths again! I started working on |
Info
Problem
Pug templates don't use
@prettier/plugin-pug
specific settings. According the developer over on@prettier/plugin-pug
I think this is because the package needs to be updated in Vetur'spackage.json
.Original Issue I opened on
@prettier/plugin-pug
Issue: prettier/plugin-pug#124
Related Issue: #527
Temporary Solution
I had to downgrade Vetur's version to
0.27.3
, and then any @prettier/plugin-pug settings work. I will open a request on the Vetur repo and see about getting them to update to the current version.Input
Expected Output
Actual Output
Additional Context
My project has a
.prettierrc
file with the optionsThe text was updated successfully, but these errors were encountered: