question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Clion code insight features for PIO "lib_extra_dirs" option

See original GitHub issue

Configuration

Operating system: Windows 10 64bits

PlatformIO Version (platformio --version): 4.3.1

Clion 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 ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
valeroscommented, Apr 21, 2020

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?

0reactions
Copper-Botcommented, Apr 21, 2020

It works like a charm ! Thank you very much !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick start guide | CLion Documentation
One of the most useful code generation features is · To get the list of code generation options at any place in your...
Read more >
PlatformIO | CLion Documentation
Search for PlatformIO for CLion and click Install. You will be prompted to install the Ini plugin, which provides code insight for platformio....
Read more >
Manage CMake project files | CLion Documentation
Choose the desired file type: Adding new files from the Project view. Specify the name, type, and additional options for the new file....
Read more >
Embedded development | CLion Documentation
This page gives an overview of how you can use CLion as your embedded development IDE. For detailed feature descriptions and setup ...
Read more >
Intelligent Coding Assistance & Code Analysis - Features
These pages will help you learn about the features available in CLion, ... Try smart completion, formatting and helpful views with code insight....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found