Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix for #3773: Show Indexing Max Files Exceeded Error Dialog once #3783

Merged
merged 2 commits into from
May 16, 2013

Conversation

dschaffe
Copy link

fixes issue #3773. minor fix to only show dialog "Error Indexing Files" "The maximum number of files have been indexed. Actions that look up files in the index may function incorrectly." The problem is if your current project has > 10k files you see this error every time you save an edit and dirty the cache. The fix is to show to error the first infraction and use console.log subsequent times.

@ghost ghost assigned peterflynn May 13, 2013
/**
* Store whether the index manager has exceeded the limit so the warning dialog only
* appears once.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add @type {boolean} annotation

@peterflynn
Copy link
Member

It seems like _maxFileDialogDisplayed should get reset whenever a new project is loaded. If you split the "projectOpen projectFilesChange" listener at bottom in two then you can do it there on "projectOpen".

@peterflynn
Copy link
Member

@dschaffe Done reviewing -- looks pretty good, just a few small comments.

Also, before we can merge this you'll need to sign the Brackets contributor agreement.

@dschaffe
Copy link
Author

peterflynn: Thanks for reviewing the pull request. I signed the Brackets Contributor agreement and updated branch with your suggestions.

  • split "projectOpen projectFilesChange", reset _maxFileDialogDisplayed on "projectOpen", tested this by triggering max files indexing, add new file to project = verify warning to console, open new project = verify dialog appears
  • changed to !maxFileDialogDisplayed
  • added annotation @type {boolean}

@peterflynn
Copy link
Member

Looks good -- thanks @dschaffe! Merging.

peterflynn added a commit that referenced this pull request May 16, 2013
Fix for #3773: Only show 'Indexing Max Files Exceeded' dialog once per project
@peterflynn peterflynn merged commit 2ddcf52 into adobe:master May 16, 2013
@chriscantu
Copy link

I have several projects where I am leveraging 'bower.io' to manage my web dependencies and run into the limit frequently. Additionally, I do nodejs projects with the node_modules directory full of dependencies. I run into the limit constantly. It makes Brackets Quick Open feature unusable.

Would it be possible to ignore certain directories like app/bower_components and node_modules or give us the option to ignore them?

@peterflynn
Copy link
Member

I suspect the right answer is to be smart about filtering out massive trees of third-party dependencies, a la this user story: https://trello.com/c/LgdleOVx/695-exclude-ignore-binary-files-libraries-or-subfolders-from-find-all-other-searches. We probably don't want to actually index 10k+ files (that's the sort of thing that contributes to IDE-like slow startup times & slow project loads, which we'd really like to avoid).

@unyo
Copy link

unyo commented Aug 21, 2014

agreed, something should be done to limit the number of files being indexed. right now, since brackets starts up in my home directory (with a godawful number of .hidden directories), it'll freeze up almost every time to the point where i have to force kill brackets.

@peterflynn
Copy link
Member

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants