Getting error when trying to use `core_dir` in platformio.in1

HI,

I am attempting to use the core_dir field in my platformio.ini file, but I am getting errors from the IDE and the build process:

Warning! Ignore unknown configuration option core_dir in section

I have tried uninstalling & then reinstalling VSCode & PlatformIO, but that did not help.

My platformio.ini has:

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; Redirecting...

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
core_dir = M:\ESP32Dev\PlatformIO
lib_deps =
marcoschwartz/LiquidCrystal_I2C@^1.1.4
adafruit/Adafruit VEML6075 Library@^2.2.0

I am using Windows 10

Thank you,
George Wicks

This can’t be in an [env:xxxx] section of the platformio.ini, it must be in the special [platformio] sectionn, as documented.

[platformio]
core_dir = M:\ESP32Dev\PlatformIO

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
  marcoschwartz/LiquidCrystal_I2C@^1.1.4
  adafruit/Adafruit VEML6075 Library@^2.2.0
2 Likes