Intellij: External Dependencies link to wrong path CLion

Created on 25 Jul 2018  路  5Comments  路  Source: bazelbuild/intellij

If i go to definition in CLion it will jump to a cache directory ala

bazel_$USERNAME/HASH/execroot/__main__/external/ ...

instead of my actual dependency (a local_repository located in my workspace).

bazel external dependencies feature request

All 5 comments

This is generally not the case, although it is possible that local_repository is broken in CLion - could you provide a minimum reproducable example?

Sure, forgive the clearly still WIP:

git clone https://github.com/brandonpollack23/grok3dtests --recursive

cd grok3dtests

import into CLion

before you build, none of the third_party/grok3d dependencies are even visible to the project so it's red all over

bazel build :grokgame

all the red is gone, but if you jump to definition (Go to GRK_Engine from movebackandforthtests.cpp)

it'll not open the third_party repo.

Just as a sanity check: did you click the blaze 'B' button on the top right of the CLion window to sync the project?

Sure did haha I'm used to this flow from the similar internal Google tool.

I should note that the workspace includes these as external dependencies, they are not compiled as packages

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sambercovici picture sambercovici  路  9Comments

Maririri picture Maririri  路  7Comments

brownry1986 picture brownry1986  路  8Comments

KaoruDev picture KaoruDev  路  3Comments

ghost picture ghost  路  5Comments