I have found an other platformio folder in the following directory : C:\.platformio
Then there are 2 versions installed :
C:\.platformio → currently used by VSCode.
%HOMEPATH%\.platformio → curently used by CLion.
I think (but not sure) I have previously installed VSCode at “current user level”, then uninstall it before install it again at “all users level” this time.
So, the %HOMEPATH%\.platformio was unused until I install CLion.
But with CLion, there is a conflict detected unlike with VSCode.
To solve the issue, I have finally deleted the %HOMEPATH%\.platformio folder, then uninstall and install again the platformio plugin for CLion.
I will had to specify the platfomio path in CLion Settings → languages & frameworks → PlatformIO with the C:\.platformio path because it seems CLion can’t detected platformio in this folder.
Rem. : I’m using Windows 10
To get the platformio location for each IDE (VSCode and CLion), I have done the following code in the embedded terminal : pip show platformio