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

lib folder is automatically created everytime platformio.ini is modified #1473

theagoliveira opened this Issue Mar 21, 2018 · 2 comments


None yet
2 participants

theagoliveira commented Mar 21, 2018

What kind of issue is this?

[x] PlatformIO Core. If you’ve found a bug, please provide an information below.


Operating system: Ubuntu 17.10

PlatformIO Version (platformio --version): 3.5.3a3

Description of problem

I'm using a folder called libraries (instead of lib) for my private libraries, with the option platformio.ini > [platformio] > lib_dir = libraries. Everything is working fine; however, everytime I modify and save the platformio.ini file a lib folder appears inside the project's folder. I'm also using custom source folders with the src_dir option, but no src folder gets created (which is the expected behavior). Is there a way to stop this lib folder from being created?

Steps to Reproduce

  1. Create a new project;
  2. Add lib_dir = libraries to platformio.ini file;
  3. Delete lib folder;
  4. Save platformio.ini file.

Actual Results

A lib folder appears.

Expected Results

No lib folder appears, since I'm not using a folder called lib inside my project anymore.

If problems with PlatformIO Build System:

The content of platformio.ini:

lib_dir = libraries
; src_dir = src1
src_dir = src2

platform = atmelavr
board = uno
framework = arduino

This comment has been minimized.

theagoliveira commented Mar 21, 2018

I noticed the same thing happens with .gitignore file (appears when platformio.ini is modified). Can I choose to not have this file? I want to place multiple platformio projects in one repository, with only one .gitignore file:


@ivankravets ivankravets added the bug label Apr 25, 2018

@ivankravets ivankravets added this to the 3.5.3 milestone Apr 25, 2018


This comment has been minimized.


ivankravets commented Apr 25, 2018

Please retest with the latest dev version via pio upgrade --dev.

ivankravets added a commit that referenced this issue Jun 1, 2018

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