CLion on Windows: platformio command not found

Hi,

I get the previously discussed error that “platformio” command can not be found when building my project in CLion (on Windows in my case).

Also, I know I can solve that by adding the C:\Users<user>.platformio\penv\Scripts folder to the PATH env-var.

My question is, if there is an alternative to that.

Since adding an environment to the PATH isn’t a good idea when wanting to use python global or specific virtual environments as well.

Thanks Thomas

Installing the CLI and adding it in your path is what the installation guide that the CLion documentation (CLion — PlatformIO latest documentation) refers to – so that’s the official way.

Maybe the plugin should get just a configuration setting with a path to the PlatformIO executable – what do you think @ivankravets