Skip to content
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

Unable to stat changed path warning #289

Closed
FezVrasta opened this issue Mar 26, 2014 · 4 comments
Closed

Unable to stat changed path warning #289

FezVrasta opened this issue Mar 26, 2014 · 4 comments

Comments

@FezVrasta
Copy link
Contributor

Why do I get this warning?

Unable to stat changed path:  C:/Users/<username>/AppData/Roaming/Brackets/extensions/user/brackets-git/.git/index.lock NotFound 
/filesystem/impls/appshell/AppshellFileSystem.js:76

Brackets 0.37.0-12014 (win), Git 1.8.4.msysgit.0 & Brackets-Git 0.12.1

@zaggino
Copy link
Member

zaggino commented Mar 26, 2014

It's some feature of the new Brackets file watchers. I'm guessing file was there for a short while and then was deleted but Brackets tried to perform some kind of operation over it. I didn't really studied the code so it's just my guess.
image

@zaggino
Copy link
Member

zaggino commented Mar 26, 2014

Ping @iwehrman to clarify please :)
I love the View authors of selection feature ^^

@iwehrman
Copy link

It's a harmless message that could safely be removed from this code. When a file change is detected by the watchers, we attempt to package up that file's stats for the change event that is eventually triggered for clients. But this fails if the file is moved between the time the change event is received and the stat call is made. The stats are a convenience to clients only, so nothing really bad should happen in this scenario.

@zaggino zaggino changed the title index.lock NotFound Unable to stat changed path warning Mar 26, 2014
@zaggino zaggino added invalid and removed invalid labels Mar 26, 2014
@zaggino
Copy link
Member

zaggino commented Mar 26, 2014

It's quite annoying when working with Git because files appear and disappear in the .git folder very quickly. I'll put together a PR to exclude files inside .git through regexp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants