-
-
Notifications
You must be signed in to change notification settings - Fork 95
Atom Crashes When Trying to Save HTML Files #480
Comments
How big is the HTML file you’re saving? |
Also, can you confirm that this works fine outside of prettier-atom (using Pretter directly)? |
It's only 34kb |
I ran Prettier from the CLI and it worked perfectly. |
Same for me with a 28kB html. Prettier CLI works fine. I have disabled autoformat for *.html until this is fixed. |
Can someone give me some sample html and filename that fails for them and I can try to reproduce locally? |
I started out by modifying this template: evelyn.zip I have redone most of it on my own but I have never been able to format it with prettier in Atom. |
I am experiencing this issue still with the following html file: index.html gist |
Can confirm. Tried saving a file with 200 lines of SVG inline and it consistently crashed my editor. |
Me too |
@uyouthe Can you provide a gist if possible? I'm not sure what the common thread here is, but it seems to be based on the actual code in the file and very rare. I want to see if there's something obvious about what's going on. |
@robwise https://miloslav.website, index.html |
Awesome, I think I've narrowed down the issue. When calling It is this old issue here: prettier/prettier#4801 While we wait for Prettier to fix it, what I suggest you do is run prettier from the command line to format the file the first time. This uses the normal (as opposed to |
I'm using Atom 1.34.0 on Windows 10 and I had configured Prettier to format on-save. It works fine on javascript files but when I try to save HTML files, it hangs and I have to force close the app.
I know that Prettier is the problem because once I disabled it, the HTML file saved no problem.
How can I go about fixing this? The package version of prettier-atom is 0.56.2
The text was updated successfully, but these errors were encountered: