Is there a reliable way for Idea to ignore directories from indexing?

I'm working on a javascript project and I need Idea to ignore a few directories (node_modules, bower_components, etc). Most importantly, I need a temporary directory where partial builds are stored to be completely ignred. However, no matter what I do, Idea wants to index this tmp dir, which renders the Ide almost unusable. The temporary build producs ar big, written constantly and indexing blocks the UI completely.

Is there a setting somewhere that I may be missing?

13 comments
Comment actions Permalink

no matter what I do,


So what did you try exactly? Did you mark corresponding directories as "Excluded" in Project Structure?

0
Comment actions Permalink

Hi Yann, yes. That was the first thing I tried. The directories are flagged as excluded but they are still being indexed.

From IDEA 14's release notes:

  • Indexing: upon changes in used libraries or excluded directories indexing is restarted with new settings
  • Indexing: upon changes from VCs or other external changes indexing is performed asynchronously


I don't know what "with new settings" means but I do not want excluded directories to be indexed at all.



Attachment(s):
Screenshot 2014-11-06 14.32.34.png
0
Comment actions Permalink

I see, thank you. Do you know if it's safe to assume that if it's fixed in PHPStorm it will eventually be resolved in Intellij too? So no need to report it again?

0
Comment actions Permalink

Could you please attach thread dumps and/or CPU snapshots to the aforementioned issue? Thanks
https://intellij-support.jetbrains.com/entries/29983118-Reporting-performance-problems

0
Comment actions Permalink

I uploaded a CPU Usage profile to your FTP server. The filename is IU-139.224_alce_06.11.2014_20.33.36.zip.
Just to reiterate what I'm seeing:

- I have a directory inside my project, which is marked as "Excluded"
- My build system writes partial builds to this directory pretty much every time I edit a source file. This triggers the indexer and renders the IDE unusable (blocks the UI)

IDEA13 is not as bad as IDEA14. Still indexes directories that should be ignored BUT the UI is still usable (barely).

Thank you.

0
Comment actions Permalink

Could you please provide sample project to reproduce the problem and attach it to https://youtrack.jetbrains.com/issue/IDEA-88645?

0
Comment actions Permalink

Yes this happens to me too.

Can't you guys move indexing to some other thread then UI. Everytime indexing is doing its stuff whole GUI freezes.

0
Comment actions Permalink

Check next Idea 14.0.2 EAP for less GUI freezes. The fix doesn't answer original question and to have an aswer we need simple project with reproducible problem

0
Comment actions Permalink

When will it be available for download?

0
Comment actions Permalink

Hi, I figured out what was going on and was able to find a solution.

In my case, the problem was that the directories I was trying to mark as "Excluded"  were, at the same time, marked as "Packages". It seems that IDEA does not exclude directories that are considered packages or libraries, which sort of makes sense.

As to why the build product directories were marked as packages had to do, in my case, with how the Go build tools expect projects and packages to be organized, how my project itself was organized, and how I added dependencies to the project. Long story short, I was trying to exclude directories that were children of directories I added as depencies.

Thank you.

0

Please sign in to leave a comment.