-
-
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
Add Clion code insight features for PIO "lib_extra_dirs" option #3460
Comments
Hi @Copper-Bot ! Strange, but I cannot reproduce the issue. I added a new folder to |
Hi @valeros ! Hum, don't you have a warning when opening any .c/.cpp library source file with clion, that they are not part of the project ? Or maybe it is because I am using multiple environments with different "lib_extra_dirs" for each ? Here is an example: test_folder.zip If you init the project with Clion, any headers from "lib_extra_dirs" will be part of the clion project (code insight ok), but not their associated .c/.cpp files. |
Hi again, First thanks you for the PR ! I just switch to the dev version of PIO (4.3.2a2) and re-init my project and ... it doesn't work completely for me haha It works fine for the first environment, but not the second. It seems that the Using the same
I don't know very well Cmake so I don't know if it is a viable solution or not, but it seems to work for Clion. |
Strange, but I cannot reproduce the issue with the latest |
#3460 This will allow to dynamically populate list of sources depending on selected environment. At the same time "src" and "lib" folders remain common for all environments
OK, now I see what you mean, I just pushed a small fix, could you please update PlatformIO to the latest from development branch and try again? |
It works like a charm ! Thank you very much ! |
Configuration
Operating system: Windows 10 64bits
PlatformIO Version (
platformio --version
): 4.3.1Clion Version: 2019.3.5
Description of the bug/request
Hi !
When "lib_extra_dirs" option is used on platformio.ini, and when the project is init for Clion, PIO does not add the additional lib path at the end of the CMakeListsPrivate.txt (the path is missing in the "FILE(GLOB_RECURSE SRC_LIST .... )" command).
PIO work fine, but Clion does not activate code insight features for any source files in the additional lib path, unless it is manually added to the CMakeListsPrivate.txt.
Would it be please possible to add this to PIO Clion project files generation ?
The text was updated successfully, but these errors were encountered: