platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
241 stars 326 forks source link

Creating new project in CLion doesn't work #124

Closed gbaranski closed 4 years ago

gbaranski commented 4 years ago

CLion version 2019.3.5 x64, doesn't work on both Windows 10 and Mac os catalina, shows "Gathering info..." and on bottom "PlatformIO utility is not found". I can't find any fix image

ivankravets commented 4 years ago

This is a known issue, we requested this feature here https://youtrack.jetbrains.com/issue/CPP-19412 CLion does not install PlatformIO Core automatically for you:

  1. Install PlatformIO Core using installation script
  2. Install Shell Comamnds

So, you should have working platformio --version command when opening the system terminal or after the restart of your OS. You need to patch the PATH system environment variable and extend it with a folder where PlatformIO Core is installed. We don't have SUDO/Administrative permissions. As a result, we can't do this for you.

The other option is to install PlatformIO IDE for VSCode, it will install PlatformIO Core automatically for you. You will just need to path the system PATH and switch back to CLion.

/cc @anastasiak2512 @elmot

gbaranski commented 4 years ago

Awesome, thanks :)

ivankravets commented 4 years ago

Does it work now?

gbaranski commented 4 years ago

@ivankravets that works, now I'm trying to figure how to fix syntax highlithing, CLion doesn't see default Arduino.h library

elmot commented 4 years ago

@gbaranski ensure that your files are c++ (i.e. have .cpp extension)

Sukikui commented 1 year ago

Hello, can you more precisely explain how to "path the system PATH" ? I met the same problem and nothing work, but I've PIO Core thanks to VSCode, from this I don't know how to link the packages with CLion.