lefticus / cpp_weekly_game_project

The Unlicense
107 stars 22 forks source link

stb/20180214@conan/stable is locked by another concurrent conan process, wait... #8

Open kershnerd opened 4 years ago

kershnerd commented 4 years ago

I am on a fresh install of ubuntu with CMake and conan installed.

I get the error:

stb/20180214@conan/stable is locked by another concurrent conan process, wait...

No matter what I do when CLion loads the project. I have tried doing:

conan remove --locks

and even:

conan remove "*" -f

restarting CLion and even rebooting my computer, but I always get the error:

stb/20180214@conan/stable is locked by another concurrent conan process, wait...

This has been driving me crazy! Any idea how to fix this?

ddalcino commented 4 years ago

Do you have multiple CMake profiles for this project? On my machine, I usually have several CMake profiles for each project (one Debug build, one Release build, one for sanitizers, etc.). Every time I ask CLion to reload the CMake project, CLion concurrently spawns a separate CMake process for each profile, and each CMake process spawns its own conan process. This may explain why you have multiple conan processes running at once. It does not explain why they cannot play nice with each other.

There are two ways to look at your CMake profiles in CLion:

If you only see one CMake profile, then I have no idea what's happening here.

If I were you, I would try several things:

To me, this sounds like your version of conan has a deadlock problem. If you are still having trouble after updating conan, it may be worth looking into at https://github.com/conan-io/conan.