Skip to content
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 insights doesn't work inside ./lib folder #897

Closed
S2Ler opened this issue Feb 5, 2017 · 1 comment
Closed

CLion code insights doesn't work inside ./lib folder #897

S2Ler opened this issue Feb 5, 2017 · 1 comment

Comments

@S2Ler
Copy link

S2Ler commented Feb 5, 2017

Configuration

Operating system: macOS 10.12.3

PlatformIO Version (platformio --version): PlatformIO, version 3.3.0a10

Description of problem

CLion 2016.3.2 code insights doesn't work in ./lib folder unless all files inside this folder are added to CMakeLists.txt. For example: add_executable(${PROJECT_NAME} ${SRC_LIST} lib/DHT/DHT.h lib/DHT/DHT.cpp). But CMakeLists.txt is regenerated during PLATFORMIO_REBUILD_PROJECT_INDEX build step.

Steps to Reproduce

  1. platformio init --ide clion --board uno
  2. Import project into CLion
  3. Create a folder inside ./lib folder
  4. Create files inside the folder

Actual Results

All files inside ./lib folder appears in light grey inside CLion project navigator and code insights doesn't work.

Expected Results

CLion recognize all files inside ./lib folder similar to how it recognize them inside ./src folder.

@ivankravets
Copy link
Member

Please re-test with the latest PIO Core and re-init project:

pio upgrade --dev
pio init

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

No branches or pull requests

2 participants