Home Download Buy Blog Forum Support

ST3: indexer locking files in Windows

ST3: indexer locking files in Windows

Postby unwiredben on Tue Jul 30, 2013 9:32 pm

I've been having a problem with git checkout since switching to the ST3 beta. I'm often switching branches for different repos in my day-to-day work, and many of my projects have multiple repos with lots of JS and CSS files in them. What I see when ST3 is running with a project containing those repos are error messages from the "git checkout" that look like

Code: Select all
ben.combee@2KS8CW1-PC /c/git/enyobench/enyo ((2.2.0))
$ git checkout -
error: unable to create file tools/minifier/node_modules/less/test/less/import/import-once-test-c.less (Permission denied)
Checking out files: 100% (662/662), done.
D       tools/minifier/node_modules/less/test/less/import/import-once-test-c.less
Previous HEAD position was ad50ee2... Update package.json with 2.2.0 version
Switched to branch 'master'


I tried having the ST3 console open while doing these checkouts and see messages there like

Code: Select all
indexing [queue 10]: no files were indexed out of the 308 queued, abandoning crawl


These checkout issues don't happen when ST3 is closed, so I'm thinking it's the indexer that's keeping files locked. I'm using build 3052 but also saw this with 3048. I'm using Windows 7 on this machine, with the git operations running in a msys shell.
unwiredben
 
Posts: 1
Joined: Tue Jul 30, 2013 9:25 pm

Re: ST3: indexer locking files in Windows

Postby mhammond on Tue Sep 03, 2013 2:02 am

I know it's been a few months, but "me too" - I'm having the exact problem described here - st3, msys git failing to apply branch changes etc due to a "permission denied" error. Anti-virus is excluded from the directory, the Windows Indexer is disabled and nothing else is running that could account for this. Problem is somewhat intermittent, but only ever happens when st3 is running and has never happened when it is not.
mhammond
 
Posts: 1
Joined: Tue Sep 03, 2013 1:57 am

Re: ST3: indexer locking files in Windows

Postby enzy on Sun Feb 23, 2014 1:52 pm

+1
enzy
 
Posts: 6
Joined: Mon Oct 03, 2011 3:40 pm

Re: ST3: indexer locking files in Windows

Postby aeisor on Tue Mar 11, 2014 10:30 am

+1

At the moment this is only affecting me as my team have not upgraded from ST2; However, this is imminent as I keep raving about the brilliance that is CTRL+Shift+R.

Windows 7 Pro x64 SP1 / ST3 Build 3059
aeisor
 
Posts: 1
Joined: Tue Mar 11, 2014 10:28 am

Re: ST3: indexer locking files in Windows

Postby valrus on Fri Jul 11, 2014 12:14 am

+1. Really annoying. Source control checkouts fail even if just the parent folder is open in a project in Sublime, and the problem stops as soon as I close that project.
valrus
 
Posts: 10
Joined: Wed Jan 30, 2013 5:15 pm

Re: ST3: indexer locking files in Windows

Postby jbrooksuk on Fri Jul 11, 2014 8:53 am

Have you tried turning atomic save off?

Add:
Code: Select all
"atomic_save": false


To your preferences.
jbrooksuk
 
Posts: 775
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: ST3: indexer locking files in Windows

Postby valrus on Fri Jul 11, 2014 6:53 pm

Thanks for the heads up, twor. I'll give it a try.
valrus
 
Posts: 10
Joined: Wed Jan 30, 2013 5:15 pm

Re: ST3: indexer locking files in Windows

Postby quodlibet on Fri Jul 11, 2014 7:05 pm

I've also had some trouble with the indexing on Win 7. One thing that helped was excluding patterns from being indexed. Here's what I use, which you'd want to adapt, obviously:

Code: Select all
"index_exclude_patterns":
[
    "*.log",
    ".git/*",
    ".sass-cache/*"
],


https://github.com/alehandrof/sublime-s ... ngs#L60-65
quodlibet
 
Posts: 543
Joined: Sat Jun 18, 2011 5:53 pm

Re: ST3: indexer locking files in Windows

Postby jbrooksuk on Fri Jul 11, 2014 7:05 pm

valrus wrote:Thanks for the heads up, twor. I'll give it a try.

twor didn't do anything except mention Windows having issues.
jbrooksuk
 
Posts: 775
Joined: Sun Apr 11, 2010 10:37 am
Location: England


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 33 guests