clion wsl navigation to boost in conan repository

Answered

Hi,

I am using Clion an conan.  I have Clion configured with a Visual Stuido build, a Remote build to my Linux workstation, and a WSL build.  All used to work until recently, and now i've upgrade Clion to 22021.2.3 but i still have the following problem.

I am downloading Boost via conan, and it goes into the .conan repo.  I print out ${Boost_Libraries} and it is referring to /home/<username>/.conan/etc... that work fine for the build/run from the ide but code navigation and boost unit test do not work from the ide - I get red squiggles on all my 'boost' stuff but like I said I can build/run fine from the ide.  And the VS and Remote still work, the problem is only with WSL.  I've completely uininstalled and reinstalled clion and reset my WSL toolchain as well.

 

4 comments
Comment actions Permalink

Hello!

Is it a CMake project? Does calling Tools | CMake | Reset Cache and Reload Project for your WSL profile help?

0
Comment actions Permalink

Yes, it is a cmake project.  Is Tools | CMake | Reset Cache and Reload Project different from File | Invalidate Caches ?  I think it actually worked.  

0
Comment actions Permalink

>Is Tools | CMake | Reset Cache and Reload Project different from File | Invalidate Caches ?

Yes, it is. The first one resets the CMake cache (https://www.jetbrains.com/help/clion/cmake-cache.html#reset-cache), the second one - CLion caches (https://www.jetbrains.com/help/clion/invalidate-caches.html).

0
Comment actions Permalink

ah good to know - thanks!

0

Please sign in to leave a comment.