conan-io / conan-clion-plugin

CLion C/C++ IDE plugin for Conan Package Manager
Apache License 2.0
100 stars 27 forks source link

Failed to run conan when setting the path to wsl conan #165

Open npuichigo opened 1 year ago

npuichigo commented 1 year ago

For example, I set conan to wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan, but it failed to run cmake.

C:\Windows\system32\wsl.exe --distribution Ubuntu --exec /bin/bash -c "/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake '-DCONAN_COMMAND=\\wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan' -G 'CodeBlocks - Unix Makefiles' -S /mnt/d/Codes/cpp/playground -B /mnt/d/Codes/cpp/playground/cmake-build-debug-wsl"
CMake Error at conan_provider.cmake:325 (message):
  CMake-Conan: Error when trying to run Conan
Call Stack (most recent call first):
  conan_provider.cmake:358 (conan_get_version)
  CMakeLists.txt:6 (find_package)
Daniel599 commented 1 year ago

Hi, Please look at my reply Here You need to provide the path as-if it is within linux already, hope it helps.

rturrado commented 8 months ago

Thanks for the answer, very useful!