-
Notifications
You must be signed in to change notification settings - Fork 2
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 error on Windows machines #84
Comments
Hi Victor, Thank you very much for this detailed report. It's very helpful. I pushed a fix in #85. Will you check if the test package in #85 (comment) does resolve this issue? |
Hello, @Sec-ant, Thank you so much for the prompt answer and fix. I can confirm that the fix pushed in #85 did fix the issue, and now the SQL codes can be formatted on save, but I want to know if there is any downside in this approach (Removing the throwIfPluginIsNotFound check). What was the purpose of this code and why is it no longer necessary? Recording.2024-02-20.093256.2.mp4 |
The function
TL;DR, this function does more harm than good. The paths of the loaded plugins are registered in the However there're several issues with this approach:
So I decide to remove this function. |
You're welcome to share them if you have better ideas @Eprince-hub, otherwise I'm going to move forward and release a new version including this fix. |
@Sec-ant, amazing! I think it makes sense to go on with this fix, as you have explained above 👍 |
The fix is shipped in v0.4.14. |
The
prettier-plugin-embed-embed
does not load theprettier-plugin-sql
on Windows machine in VS Code and shows this error on the VS Code DevTools when saving a file.No error shows up in the output panel of VS Code, as it shows that the formatting was completed, this was also mentioned here
This the content of the Prettier config file
The SQL code that should be formatted
I am using the following versions for the plugins
Running this Prettier command from the command line was able to format the file
The text was updated successfully, but these errors were encountered: