File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3838 DefaultEnvironment ,
3939)
4040
41- from platformio import fs
41+ from platformio import fs , __version__
4242from platformio .compat import IS_WINDOWS
4343from platformio .proc import exec_command
4444from platformio .builder .tools .piolib import ProjectAsLibBuilder
7070assert os .path .isdir (FRAMEWORK_DIR )
7171assert os .path .isdir (TOOLCHAIN_DIR )
7272
73+ # The latest IDF uses a standalone GDB package which requires at least PlatformIO 6.1.11
74+ if (
75+ ["espidf" ] == env .get ("PIOFRAMEWORK" )
76+ and semantic_version .Version .coerce (__version__ )
77+ <= semantic_version .Version ("6.1.10" )
78+ and "__debug" in COMMAND_LINE_TARGETS
79+ ):
80+ print ("Warning! Debugging an IDF project requires PlatformIO Core >= 6.1.11!" )
81+
7382# Arduino framework as a component is not compatible with ESP-IDF >=4.1
7483if "arduino" in env .subst ("$PIOFRAMEWORK" ):
7584 ARDUINO_FRAMEWORK_DIR = platform .get_package_dir ("framework-arduinoespressif32" )
You can’t perform that action at this time.
0 commit comments