I'm having an odd issue in IDEA 14, and I hope it's just something I'm not understanding. I've got a Java project with external libraries (which are actually Maven dependencies). Now in some cases, if I update a dependency, I may get a compiler error in a file. For example, it may say that I'm trying to pass type X to a method expecting type Y. Further, assume the method is on a class that's contained in the Maven dependency.
This is where it gets weird. If I click on the method and jump to the source (which is in the external JAR), the type for the method argument is correct. But for some reason, my source file still has an error flag saying the type is wrong. I've tried doing a Synchronize on the file, the module, and even on the external JAR in the library section of the project tree. I also tried using the Maven panel to compile, do a clean/install, reimport the module, and even reimport all modules. The only thing that seems to occasionally work is shutting down IDEA completely and then restarting it. At that point, it does something (a re-index?) which finally gets rid of the error.
Is this normal? Is there some trick here to get IDEA to really pick up a change in an external library? The only things I've haven't tried yet are Make Module and Rebuild Project, which I'll try the next time this happens. However, that seems kind of extreme for something that sounds like it should "just work". I feel like I'm missing something here. Any help appreciated.