Why is that I need to `Invalidate Caches...` so of...
# intellij
m
Why is that I need to
Invalidate Caches...
so often? Sometimes IDEA doesn't seem to have access to the SDK libraries or whatever and not even a
prinln(...)
is recognized, triggering an error on the IDE (not the compiler/Gradle). What causes this? Can I prevent it? Am I doing something wrong?
t
Just refreshing gradle module doesn't help? (Note: Refreshing gradle module doesn't work if you have some other long gradle task running on module, like
run
)
f
You aren't doing anything wrong. These are bugs, I think mostly in shared indices and other caching areas. You can try disabling shared indices, maybe it helps a little but ultimately JetBrains needs to fix this.
t
Agree. But maybe problem can be mitigated somehow.
m
Okay, I'll try that. Thanks for replying. I've been living with this since forever and everyone kind of got used to it maybe subconsciously as far as I can tell, but now I find it utterly annoying.
f
I'm on the latest EAP and it happens less there, so it seems that IntelliJ is working on it.
c
for me its fixed with 2021.1.1