1

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.

yuyang
  • 1,511
  • 2
  • 15
  • 40
  • Do you get the source roots configured correctly when the project is imported? See https://stackoverflow.com/a/43319356/104891. – CrazyCoder Oct 23 '19 at 17:09
  • Please file a bug on https://github.com/bazelbuild/intellij with your Bazel, OS, IntelliJ and plugin versions. – Jin Oct 23 '19 at 21:31

0 Answers0