Atom-beautify: Atom-beautify causes chaotic behaviour and empties files on save (.html)

Created on 8 Aug 2017  路  11Comments  路  Source: Glavin001/atom-beautify

Description

After updating to 1.19 Atom starts behaving unexpected after saving html files. It doesn't add/delete anything and redo command is not working. Then, if I close the file and open again the file appears empty. Disabling atom-beautify fixed the problem.

Steps to Reproduce

  1. Open html file
  2. Save file
  3. Close file
  4. Open again

Debug

Disable atom-beautify

Checklist

I have:

  • [x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • [x] Reloaded (or restarted) Atom to ensure it is not a caching issue
  • [x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • [x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
  • [ ] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue
deprecated-atom-api duplicate published

Most helpful comment

Ultimately caused by https://github.com/Glavin001/atom-beautify/issues/1721. Try disabling beautify on save as that is where the issue lies. Manual beautify should not cause these problems.

All 11 comments

This started happening after I updated Atom as well. It seems to be on multiple file types, not just HTML. I noticed it while working in .js files.

Same bug here, started happening after Atom updated to 1.19.0. I confirm it's at least on HTML and CSS files.

I'm having this issue as well with .js files.

Moreover, when I press save, it seems like the beautifier runs non stop, taking 100% CPU. When I close atom to stop it and start it back, the file is empty.

Disabling atom-beautify fixed the problem.

atom-beautify 0.30.4

atom --version
Atom : 1.19.0
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0

Confirming issue. Just spent half an hour figuring out which plugin caused this behaviour. Cheers!

Same issue here, been having the issue going for 2 days. Only happened with JS files tho. Disabled each plugin installed one by one until issue was fixed. Disable atom-beautify and now all works perfectly again.

I have the same issue as well.... Although if you go in and disable the beautify on save for the language you are currently working with it will no longer have the random issues.

Same after updating to Atom 1.19.0
Causes webpack dev server to recompile in constant loop, on save of .js file it wipes out all content.

Ultimately caused by https://github.com/Glavin001/atom-beautify/issues/1721. Try disabling beautify on save as that is where the issue lies. Manual beautify should not cause these problems.

Same problem here. Another weird phenomenon: If I try to save a .json file with beautify on save enabled, the cursor wanders around backwards from token to token.

This is caused by https://github.com/Glavin001/atom-beautify/issues/1721 . I will close this as a duplicate.

Workaround: disable "Beautify On Save" until fixed.

Upcoming fix: https://github.com/Glavin001/atom-beautify/pull/1804

Published to v0.30.5

Was this page helpful?
0 / 5 - 0 ratings