What causes this error with Git and a locked ReSharper folder?

I have received this error several times in recent months, but have not always received it. I suspect it appeared when I upgraded to VS11 Beta, or maybe ReSharper 7. When I try and add files from a new solution to a new Git repo, I occasionally get an error like the one below. What could be causing this?

error: open("_ReSharper.Avis/PersistentCaches/LOCK"): Permission denied


Usually LOCK files are just markers used by different software to mark that something is in use, or to implement a form of critical section that should only allow one instance of a program to work with some data. And to have a secure lock, only one program should be allowed to touch such a file.

Git tries to check each file in the working tree to see if it differs from the index or not. And to do that, it must access these files, something that's not allowed for locked LOCK files.

Given that these files are not actual data files, they should be safely ignored. Try to ignore all LOCK files in your repository.

It's internal ReSharper's lock. You should ignore ReSharper's caches folder _ReSharper.Avis and don't put it in VCS.

Need Your Help

Encapsulation in javascript


I need to create simple reusable javascript object publishing several methods and parameterized constructor. After reading through several "OOP in JavaScript" guides I'm sitting here with an empty ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.