Recently we switched to use Bazel to build projects in Java. With Bazel, I can no longer use IntelliJ to explore the class declaration etc.. IntelliJ always prompts "Cannot find declaration to go to". I am wondering if anyone has got solution for this problem.
I encounter this issue in both IntelliJ 2019.1 and 2019.2. The problem can be reproduced with https://github.com/bazelbuild/examples/tree/master/java-tutorial.