It says it cannot open source file "ESPAsyncTCP.h", but it is there and I can

I fear I am doing something stupid, or have missed something obvious, but the compiler is flagging the above error and similar ones when the files it cannot open are sat there in the programme’s Libdeps folder.

I am new to PlatformIO, but not completely new to the overall game, but this has me stumped.
The platformio.ini file reads as follows:

[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
lib_deps = 
    me-no-dev/ESPAsyncTCP@^1.2.2
    me-no-dev/ESP Async WebServer@^1.2.3

I am using your same platformio.ini and code

#include <Arduino.h>
#include <ESPAsyncTCP.h>

void setup() {
}

void loop() {
}

and it works for me.

Try these things:

  • make sure you have selected the right active project with the project environment switcher
  • build the project once and ensure it compiles
  • press Ctrl+Shift+P → Rebuild IntelliSense

Aha. That’s got it. I said I was doing something stupid. :slight_smile:

Thank you.