IDEA updates indices often, making it sluggish
I am brand new to IntelliJ IDEA. We have a fairly large web project where the backend is written in Java and the frontend is a lot of JavaScript.
I am a front end developer and as I work on JavaScript in IDEA, it's inevitable that it will decide to update indices repeatedly. Making IDEA almost unusable:
As soon as it finishes updating the index, it will immediately start updating it again, repeatedly. This is a common problem that many devs here have.
Is there anything I can do to diagnose why it does this? Is there anything I can do to prevent it from doing this?
Here is my environment info:
IntelliJ IDEA 10.5.1
Build #IU-107.322
Built on June 29th, 2011
JDK: 1.6.0_26
VM: Java HotSpot(TM) 64-bit Server VM
Vendor: Apple Inc.
Mac OSX 10.6.8
2ghz Intel Core i7
8gb of RAM
Thanks
Please sign in to leave a comment.
It looks like you didn't exclude directory containing war file. you have a non standard project structure and that's the problem. you have to assemble war in an excluded folder. And try to use exploded artifact instead of war - it will work faster and won't trigger redeploy
regards, Alex
We work directly inside our war (perhaps not ideal? I'm new to Java). We edit our JS files inside the war directory. Should we instead have our JS files in a more standard location and move them into the war upon build?
Yes, Exactly.
Your screen isn't very informative, but such a messsage usally appears when you delete or update a lot of files at once (deleted directory or updated directory, etc.). It's not a disigned usage.
Idea has concept of artifacts to specify how idea should assemble your project sources to deployable thing. I suggest you to create a brand new project from the scratch, in the technoligies check "web facet". Idea will create for you project sceleton with facet. then you have to create artifact and deploy that artifact to a web sever. once you'll be more familiar with idea deployment design, you'll be able to setup your project properly. And of cource at the first steps it will be useful to search this forum and idea blog for information on features
reagrds, Alex
I am having the same problem - except it happens when I'm not even doing anything in the IDE. I just open the project and it sits there and updates the indices over an over again. Just started doing this today when I upgraded to 10.5.1. I've tried invalidating caches and recreating the project with no luck.
--Chuck