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
Prettier plugin hangs on svelte file containing <script> tag with particular set of attributes.
This issue seems to be quite important, because it hangs everywhere -- on CI/CD systems, on pre-commit hooks, in editor. I can't find a way to work it around: even with <!-- prettier-ignore-start --> it hangs, and the only way I see is to add the component into .prettierignore (but this file seems to be ignored by pre-commit hooks).
Prettier plugin hangs on svelte file containing
<script>
tag with particular set of attributes.This issue seems to be quite important, because it hangs everywhere -- on CI/CD systems, on pre-commit hooks, in editor. I can't find a way to work it around: even with
<!-- prettier-ignore-start -->
it hangs, and the only way I see is to add the component into .prettierignore (but this file seems to be ignored by pre-commit hooks).I noticed it because it was failing on this file.
Finally I was able to make a minimal reproduction.
First reproduction -- it hangs:
Second reproduction -- it returns "Expected >" error on the fourth line
It does not hangs nor returns error if any of attributes are missing.
Reproduction
This reproduction results in hanging.
Expected behavior
It should never hang, because it is bad for CI/CD, pre-commit hooks, editors etc.
System and dependencies
The text was updated successfully, but these errors were encountered: