Library dependencies not working

I am newly converting from Arduino IDE and Visual Studio using the Microsoft Arduino extension working with .ino files. I installed the PlatformIo IDE extension (using all users in advanced install experience). I create a new project - selecting EspressIf 32 development board and arduino for the framework. I then compile using PIO RUN and things compile fine. I then go to add a single library - Adafruit BusIO for an example by adding it to my platformio.ini file. I then try to compile again with PIO RUN and it blows up with a missing header file:

 #include <Wire.h>
          ^~~~~~~~
compilation terminated.
In file included from .pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_I2CDevice.cpp:1:
.pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_I2CDevice.h:5:10: fatal error: Wire.h: No such file or directory

The Wire.h file is a standard Arduino library function that should not require any additional dependency. When I look at the dependencies I don’t see anything missing:

 Executing task: C:\Users\shanl\.platformio\penv\Scripts\platformio.exe pkg list --environment esp32dev 

Resolving esp32dev dependencies...
Platform espressif32 @ 6.1.0 (required: espressif32)
├── framework-arduinoespressif32 @ 3.20007.0 (required: platformio/framework-arduinoespressif32 @ ~3.20007.0)
├── framework-espidf @ 3.50001.0 (required: platformio/framework-espidf @ ~3.50001.0)
├── tool-cmake @ 3.16.4 (required: platformio/tool-cmake @ ~3.16.0)
├── tool-esptoolpy @ 1.40500.0 (required: platformio/tool-esptoolpy @ ~1.40500.0)
├── tool-idf @ 1.0.1 (required: platformio/tool-idf @ ~1.0.1)
├── tool-mconf @ 1.4060000.20190628 (required: platformio/tool-mconf @ ~1.4060000.0)
├── tool-mkfatfs @ 2.0.1 (required: platformio/tool-mkfatfs @ ~2.0.0)
├── tool-mklittlefs @ 1.203.210628 (required: platformio/tool-mklittlefs @ ~1.203.0)
├── tool-mkspiffs @ 2.230.0 (required: platformio/tool-mkspiffs @ ~2.230.0)
├── tool-ninja @ 1.9.0 (required: platformio/tool-ninja @ ^1.7.0)
├── toolchain-esp32ulp @ 1.23500.220830 (required: platformio/toolchain-esp32ulp @ ~1.23500.0)
├── toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch5)
└── toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 (required: espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5)

Libraries
└── Adafruit BusIO @ 1.14.1 (required: Adafruit BusIO)

Here is my platformio.ini file:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
    Adafruit BusIO

It feels like the header include system is messed up. Is that because I had the previous Microsoft Arduino extension installed? What can I look for to ensure it knows where to find that header?

Or is this an issue of something picking up an executable from another folder? Here is my environment path:

Path=C:\Program Files\Python311\Scripts\;C:\Program Files\Python311\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Users\shanl\AppData\Local\Microsoft\WindowsApps;C:\Users\shanl\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\shanl**\.vscode\extensions\vsciot-vscode.vscode-arduino-0.5.0-win32-x64\assets\platform\win32-x64\arduino-cli**;

What other steps can I take to diagnose this?

A library’s dependencies are only correctly resolved when you include the library.

Is there a #include <Adafruit_I2CDevice.h> line in your src/main.cpp?