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

Clion code autocompletion (import Arduino.h) #1674

Closed
vitt0ri0 opened this Issue Jun 12, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@vitt0ri0
Copy link

vitt0ri0 commented Jun 12, 2018

I cannot get to work code autocompletion in Clion.

I have followed this guide (http://docs.platformio.org/en/latest/ide/clion.html) and installed PIO Core, then I have created a new blink project. I have managed it to work from command line.
(Just created a main.cpp with "blink" content and executed pio run -t upload. It works nice).

However I need autocompletion in CLion. I have added a line
add_executable(myproject src/main.cpp)
into CMakeLists.txt, but i doesn't help.

@ivankravets

This comment has been minimized.

Copy link
Member

ivankravets commented Jun 15, 2018

Could you try to repeat pio init --ide clion when you modify src or lib folder? Restart CLion, it should work.

@Techzune

This comment has been minimized.

Copy link

Techzune commented Dec 13, 2018

Currently experiencing this issue. Running PLATFORMIO_REBUILD_PROJECT_INDEX causes CLion 2018.3.1 to forget pio and platformio commands. Running pio init --ide clion does re-init the project, but code completion still throws errors such as Arduino.h being nonexistent. 😢

@ivankravets ivankravets reopened this Dec 13, 2018

@ivankravets ivankravets added this to the 3.6.4 milestone Dec 13, 2018

@ivankravets ivankravets added the bug label Dec 13, 2018

@ivankravets

This comment has been minimized.

Copy link
Member

ivankravets commented Dec 13, 2018

Fixed in 9f4dde4

Please run in CLI pio upgrade --dev and re-init project. Does PLATFORMIO_REBUILD_PROJECT_INDEX work now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment