Why does Codekit complain about 10K files when I don't have 10K files in a project?

StackOverflow https://stackoverflow.com/questions/15782530

  •  31-03-2022
  •  | 
  •  

Question

Mac OS has an inbuilt limit of 10,000 files, so Codekit produces a warning if a folder has more than 10,000 files.

Maximum Item Limit Exceeded. CodeKit can watch up to 10140 items simultaneously, which is the limit imposed by Mac OS X. The app is currently watching 10132 items and 12 new items were found while refreshing the project or framework 'SocialAppsT'. These items were not added. Reduce the number of items in CodeKit and click the refresh button.

I have under 2000 files excluding .git folder:

~/Documents/SomeProject: find . -path ./.git -prune -o -print | wc -l
1966

Including the git folder (which Codekit should ignore by default) I have 7000 files.

~/Documents/SomeProject: find .  -print | wc -l
7064

How can I stop these warnings and made Codekit work on this project?

Was it helpful?

Solution 2

Check your project files for symlink references to local files, which in some cases seems to cause CodeKit to loop on adding those files.

One example from a recent project of mine:

index.php -> run-all-tests.php
run-all-tests.php

This resulted in CodeKit adding run-all-tests.php thousands of times. I suspect that it may only result if the natural file ordering places the symlink before the real file, or if it is in the same folder (as I don't see it happen in all cases).

To fix: remove the symlink, or you can exclude the file/folders from compilation.

OTHER TIPS

Found a solution after digging through twitter: https://twitter.com/MattWilcox/status/273823409266364416

Inactive projects count against the count. So if you have a bunch of projects in Codekit, even unchecked, you will get this error. As soon as I removed a few projects the error went away.

Seems like something that could/should be fixed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top