-
Notifications
You must be signed in to change notification settings - Fork 190
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
Accessing .git folder through Brackets file system adds it to the index and breaks Brackets #436
Comments
it works for me, must be a Brackets bug, I cant find any evidence this bug is related to Brackets Git... |
Well, I'm gonna checkout different versions/commits later in order to isolate the problem. |
It's even more strange, but e7334d8 is causing this... |
Is something from brackets-git executed in infinite loop? I don't have any access to Windows 8. Maybe ping someone from Brackets team who has? cc @TomMalbran as find in files author, this bug is quite bad |
I've windows 8, no problems noticed here |
@SAplayer can't simulate this problem on Windows 7 so can't really fix until it's isolated. |
Btw, this is the debug log outputted just before the crash:
|
The failing calls are the two to Btw, in case you'd like to take a look yourself (TeamViewer or Chrome Remote Desktop), you're welcome! |
I'll have to look at this but probably later when I'll have more time. I still don't understand why One of the git status-es is actually a check if a file is staged or not so it should specify a filename - I'm going to fix that now (it will run much faster). |
It probably won't change anything, but just to be sure - can you check this again with f5108aa ? |
I've checked it with brackets-git 0.13.8, still the same :( E: It looks like it's Brackets Helper which has the high load, but that's not better. Will try it without default extensions now. |
I don't understand this. These |
And really ... nothing from e7334d8 is executed while switching files ... I don't understand :( |
Well, I don't fully understand this as well, and I doubt it's really e7334d8 which causes this. Btw, notice my edit above. |
I were able to capture the file system actions via ProcMon - wow, a 68MB file including 96.000 events. Here's a quick screen: Maybe cc @njx because I know you had to work with some crash dumps. |
Ah, now it makes sense. Brackets file watchers should really ignore contents of Related: cc @peterflynn |
From what I understand - git status makes a lot of noise in |
But there are two questions left:
But it even makes sense that this happening just with E: Ok, I just tested |
I just found the probably easiest solution, which is indeed working: if (entry.fullPath.indexOf("/.git") !== -1) {
return;
} (added to FindInFiles:1188-1191) |
Good that we know how to solve it, but this should be handled in FileWatchers directly, not in the FindInFiles. I can't imagine anyone wanting to get thousands of events when hooked on |
cc @iwehrman |
@peterflynn Those files/folders are called through
The @peterflynn The events are mostly on different files, but as noted above, Brackets accesses some files multiple times. |
@peterflynn Most of the change events I saw were rename events, where the old and new name is exactly the same. You can download the ProcMon log here for further research. |
Ah, I know why it's added to the index now ... this check: It resolves whether the |
One thing in my mind that I can move our |
So it was really e7334d8 which caused this... |
@FezVrasta this problem doesn't happen when FileWatchers are down so if you're building your own Brackets shell, make sure you don't have any watching errors in your console. @peterflynn would it be a good idea to show some kind of warning icon in Brackets when FileWatchers are down? |
@zaggino Thanks, works fine now. |
Leave this open for a while... Something about this should be probably also done on Brackets' side. |
Ping @iwehrman @peterflynn: We should possibly ignore |
Find In Files
Hello
Result: Brackets hangs, memory consumption changes quickly, Brackets crashes in a
bluescreen
It is definitely brackets-git which causes this issue, as I reproduced it with it and only it installed.
The text was updated successfully, but these errors were encountered: