-
Notifications
You must be signed in to change notification settings - Fork 453
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
Beautify Directory
erases every file
#213
Comments
Beautify Directory
erases every file
This is a very serious issue, on a few fronts. Thank you for sharing. To prevent accidental usage:
Fix issue that files become completely blank. This seems to occur when a massive number of files are beautified with
I apologize for any inconvenience this may have caused. Thank goodness for version controlling projects. This is top priority issue. |
I would also add a setting to turn off the sidebar menu entry. I went and just edited the cson file. My need to beautify an entire project/directory is zero and that menu entry is the top one for me - I prefer to just do it on a file by file basis. Thanks for you prompt attention! |
I am not sure how I would go about this programmatically. Does Atom have an API for me to disable menu entries after the fact (loaded from the .cson file)? |
Please change name "Beautify Directory" to "Delete all your file" 👎 |
@sunglee Wow bummer.. I feel you. Not sure if it's of any use for you but when I tried to find if any of my files has somehow been cached/saved the only potential one (which did not work for me sadly) was that if you are on a mac with time machine on (even if your drive is not plugged in) and there is at least 20% free space, that time machine will do a local save every hour. Unfortunately my disk did not have enough room so I lost everything since last commit. |
I am going to publish with |
Published to v0.21.5 Please update immediately to ensure this issue does not cause problems for you again until it is resolved. I would also like to implement
|
@Glavin001 isn't there a way to modify things so that it does one file at the time instead of what I am assuming is to load a billion files in memory? |
Here's the applicable code for beautifying a directory: https://github.com/Glavin001/atom-beautify/blob/master/lib/beautify.coffee#L190-L211 Changing |
Perhaps a balance - I have not used this myself but mapLimit or some other tool might be of use |
I absolutely agree. Either mapLimit or probably eachLimit. And have the limit be able to be configured by users too. Good thinking — On Wed, Mar 11, 2015 at 1:36 PM, Yashua [email protected] wrote:
|
- and do not save beautified output if it is empty string
So recently the command has appeared "beautify directory" - where it used to just say "seach directory". I accidently hit it while searching in my project and it locked up and erased every. single. file. 1000's of files, the entire project completely blank. Im gonna go get drunk now. I dont have anything else to go on except there is a serious serious issue here.
The text was updated successfully, but these errors were encountered: