Hi there, I just cloned MongoDB and tried opened it in CLion. The problem is that it does not allow me to go to objects’ and methods’ declarations\usages. I see Bazel is the tool to manage this. I clicked on ‘Import Bazel Project…’ and pointed it to the root directory and ‘//src/mongo:all’ (what should it be?) as targets. Syncing button throws an error like
com.google.idea.blaze.base.bazel.BazelExitCodeException: Build command failed with 2.
Command: bazel query --tool_tag=ijwb:CLion --output=label_kind --keep_going --query_file=/Users/user/CLionProjects/mongo/.clwb/queries/query-11892987544925853372 --
at com.google.idea.blaze.base.bazel.BazelExitCodeException.throwIfFailed(BazelExitCodeException.java:63)
Set ‘directories’ to ‘src/mongo’ and got
no such target '//:-build_enterprise=False': target '-build_enterprise=False' not declared in package '' defined by /Users/user/CLionProjects/mongo/BUILD.bazel
How should I set it up?