This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Find and replace deletes the contents of files #242
Labels
From http://discuss.atom.io/t/atom-blanks-file-when-using-global-search-and-replace/10406/5, this test cases shows find and replace deleting the contents of files while doing a global search and replace.
I am using Atom 0.106.0
Grab the file: https://www.dropbox.com/s/ed58ysia84bkvig/minion-corrupt.tar.xz and extract it.
Go into the directory and type:
find . -type f | xargs wc -c | grep ' 0 '
. Notice there are no empty files.Open the directory with the command 'atom minion-corrupt'.
Press apple+shift+F to open the "Find in project" dialogue.
Select the '.*' icon (regex)
Put the regex
(for\(SysInt.*=.*0;.*<) ([a-zA-Z_.\[\]\-\>]*size\(\))
as the 'Find in project'Put
$1 (SysInt) $2
as the 'Replace in project'Press replace all.
While it seems to finish, there is now an 'atom helper' process running constantly.
Also, if you go back into the directory, I find:
The text was updated successfully, but these errors were encountered: