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

Installed libraries throw "No such file or directory" #621

Coder-256 opened this Issue Apr 16, 2016 · 1 comment


None yet
2 participants

Coder-256 commented Apr 16, 2016

What kind of issue is this?

  • Bug report. If you’ve found a bug, please provide information below.


Operating system: Mac OS X El Capitan 10.11.4

PlatformIO Version (platformio --version): PlatformIO, version 2.8.6

Description of problem

I installed a library, but it still gave an error: No such file or directory.

Steps to Reproduce

  1. Create a new project.
  2. Import an existing but not installed library.
  3. Build. An error is correctly thrown.
  4. Install the library.
  5. Rebuild. The build is successful, but the error still appears.

Actual Results

Not found?

Expected Results

Successful build

If problems with PlatformIO Build System:

The content of platformio.ini:

platform = atmelavr
framework = arduino
board = uno

platform = atmelavr
framework = arduino
board = nanoatmega328

Source file to reproduce issue:

#include "Arduino.h"
#include <SPI.h>
#include "Adafruit_BLE.h"

void setup() {


void loop() {


Additional info

Closing and reopening the file fixes the issue.


This comment has been minimized.

dmytrokyrychuk commented Apr 16, 2016

Docs say:

The libraries which are added/installed after initializing process will not be reflected in code linter. You need Menu: PlatformIO > Rebuild C/C++ Project Index (Autocomplete, Linter).

This is happening when you are installing libraries while project is not open in the IDE. Then project configuration does not contain those libraries and linter shows the "No such file or directory" error. A project configuration will be updated automatically when you are installing a library and a project is opened (unless you explicitly disable this feature in the IDE settings). If you still see the message for some reason, just click PlatformIO > Rebuild C/C++ Project Index (Autocomplete, Linter) and the message will go away.

P. S.
Please report IDE-related issues to the IDE repository directly.

@Coder-256 Coder-256 closed this Apr 16, 2016

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