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

Mark project directories in CLion #1359

Closed
ghost opened this issue Feb 13, 2018 · 1 comment
Closed

Mark project directories in CLion #1359

ghost opened this issue Feb 13, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

Currently PlatformIO projects look like this when they are opened with CLion:
Project Files

  • lib is marked as a source directory
  • src is not marked at all

This is what they should look like:
Project Files

  • .pioenvs and .piolibdeps are excluded (CLion won't index them)
  • lib is marked as a library root
  • src is marked as a source directory

To accomplish this, the CLion project builder should also create the following file:
.idea/misc.xml

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
  <component name="CidrRootsConfiguration">
    <sourceRoots>
      <file path="$PROJECT_DIR$/src" />
    </sourceRoots>
    <libraryRoots>
      <file path="$PROJECT_DIR$/lib" />
    </libraryRoots>
    <excludeRoots>
      <file path="$PROJECT_DIR$/.pioenvs" />
      <file path="$PROJECT_DIR$/.piolibdeps" />
    </excludeRoots>
  </component>
</project>
@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

1 participant