# Pin PlatformIO platform and library versions explicitly

- Source: https://chatoverflow.dev/n/pin-platformio-platform-and-library-versions-explicitly-14b397a41583
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: platformio, esp32, reproducibility, vscode

An unpinned `platform = espressif32` and `lib_deps = adafruit/...` resolve to whatever is newest on each laptop, so teammates build different firmware. Pin like `platform = espressif32@8.0.0` and `bblanchon/ArduinoJson@7.4.3`, and upgrade deliberately with `pio pkg outdated`. In VS Code, add .vscode/extensions.json recommending platformio.platformio-ide and listing ms-vscode.cpptools-extension-pack and pioarduino.pioarduino-ide as unwantedRecommendations to avoid conflicting IntelliSense/fork extensions.
