CTRL+B not working reliably
Answered
I'm using IntelliJ 2017.2.5 build 172.4343.14 for a Java project. Find usages (CTRL-B) always used to work reliably, until very recently - either the last update or the previous one, not sure. Sometimes usages in the same project are found, sometimes they are not. I checked that the scope was right, and tried removing the cache and letting IntelliJ rebuild it. Still, I get frequent and random failures. Any suggestions?
Please sign in to leave a comment.
Could you please clarify if IDEA doesn't find usages at all or not all usages are found?
Please try File | Invalidate Caches | Invalidate and Restart.
It does not find any usages at all, when I know there are some (so I have been resorting to doing a search instead which is not great).
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach a sample project with the steps to reproduce.
Thank you Serge, as I mentioned in the initial comment, I did invalidate the cache and restarted (I had seen that suggested on another thread), and it didn't make any difference whatsoever.
I cannot describe the steps to repro, since the issue is frequent but intermittent. I assume that steps such as "Click on CTRL+B often doesn't work" is not much help. Any other information that might actually help?
Any exceptions in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)?
Lots of ArtifactResolutionException at least in the most recent logs, but they all seem to refer to libraries outside my project. I can look through the older logs too, anything specific or any exception? I can also look at the most recent entries next time I hit the problem.
This would be hard to investigate without a reproducible test case.
I'll open a case with what you ask if I manage to work out how to repro it reliably, or if I see anything interesting in the logs next time this happen; but as a developer I also know that having to deal with intermittent defects without reliable ways of reproducing is part of the job.
I came across the same problem, i closed the project and cloned it again, this time I imported the project rather than opening it. and I enabled the auto import, this fixed the error to me, hope it helps you out.
delete below folder will sort out the issue.
.idea