[solved] Platform IO: "cannot find declaration" & "selected element is not located in project"
Completed
I want to use CLion to refactor my project and so I try to switch vom VS Code to Clion.
Installation on two different systems worked and I am able to compile my code by Tools/PlatormIO/Build, but everything else seems not to know anything about the project.
I already created an empty project but the problem stays. I can not call declarations in included header files and I can not refactor (not even rename a variable) anything.
What is wrong, can anyone tell, how to solve that issue?
Please sign in to leave a comment.
With help from another thread (https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008069419-CLion-2020-1-does-not-recnognize-PlatformIO-sources-anymore?page=1#community_comment_360002598520) I was able to solve the issue:
* Right click on the Src dir and Mark it as Project Sources and Headers