-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure CLion Project #132
Comments
You can integrate PlatformIO into any IDE. Which type of problem do you have? From CLion site:
You can replace built-in Thanks in advance! |
Here is interesting example how to replace built-in Eclipse builder with PlatformIO: Building and debugging Atmel AVR (Arduino-based) project using Eclipse IDE+PlatformIO |
I'd be interested in any results on this as well, I use IntelliJ regularly and have considered trying out CLion. If it supports a any standard makefile system you could always put together a config that mapped to platformio commands, if CLion doesn't let you do that directly within its preferences. |
Friends, Who can help PlatformIO with short manual with pictures how to configure CLion and PlatformIO? It can be any format: PDF/DOC/RTF/etc., then we will convert it to RST and put to core documentation with preserving author's rights. We could do it, but you can see how much issues we have opened. In this situation I want to concentrate our forces to the new features for PlatformIO. |
This is the first time I do something with C/C++ and I am still wrapping my head around basic concepts. I would gladly contribute this write up if I could figure it out on my own. I hope someone has already gone through the trouble and could share their setup. For now I was able to get IntelliJ Ultimate with C/C++ plugin to give me basic editing help. I had to add the following paths to the C++ project settings:
[line breaks added for clarity] |
@valeros has tried to configure CLion with PlatformIO, but didn't received any results. They don't allow to redefine own builder. I've just posted the comments to their issues tracker: https://youtrack.jetbrains.com/issue/CPP-871#comment=27-960431 Here is explanation by CLion owners: http://blog.jetbrains.com/clion/2014/09/cmake-vs-the-others-round-1/ |
thanks for the update |
Just tried this feature out, seems like it generates a solid CMakeLists.txt but trying to build from inside clion pops a dialog asking for an executable. It seems like I can specify any old executable (i picked the platformio file). The build will then be allowed to run, and it definitely uploads the code to my board, but it then replaces the output on the console with the standard "platformio" help message. Also, when importing the project that platformio generates, every file except CMakeLists.txt is "grayed out" in the project pane, as in CLion doesn't think it's part of the project. It also doesn't seem to be aware of the standard arduino library for purposes of auto-complete. Thoughts? |
@jimbojsb which PlatformIO version do you use? I've just re-tested it under Mac. See my results: I used this example: https://github.com/platformio/platformio/tree/develop/examples/wiring-blink and this command: platformio init --project-dir examples/wiring-blink --ide clion -b uno As for "auto-complete" - see explanation in |
I got auto complete working by setting
|
Dear friends, Please re-test full support of CLion IDE in the latest development version http://docs.platformio.org/en/latest/installation.html#development-version Waiting for your feedbacks. |
@voneiden thanks a lot for the hint! 👍 |
@ivankravets Nice, no problem. |
I am having the problem that Clion doesn't resolve my own library in the Can someone help me, please? Thanks in advance. |
@earliestearl see docs http://docs.platformio.org/en/stable/ide/clion.html
|
@ivankravets Sorry, I should have read the instructions more carefully. But thank you so much for your fast and good reply. Now, everything's working. Thanks for your great work, PlatformIO! |
@earliestearl Would be thankful for a star ⭐️ https://github.com/platformio/platformio/stargazers and don't forget to follow us on https://twitter.com/PlatformIO_Org |
Apologies if this is the wrong place to ask this question but I am trying get my current platformio project working on CLion.
I have a working platformio project that is getting bigger and difficult to manage and I was hoping to use CLion IDE. Any help is appreciated.
The text was updated successfully, but these errors were encountered: