Merge branch 'fix/gdbgui_py3.13_v5.0' into 'release/v5.0'

fix(tools): Print message about GDBGUI being not supported with Python 3.13 (v5.0)

See merge request espressif/esp-idf!34380
This commit is contained in:
Sergei Silnov 2024-10-23 19:58:53 +08:00
commit e6a6ccfe5c
2 changed files with 6 additions and 1 deletions

View File

@ -374,6 +374,10 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict:
raise SystemExit('Unfortunately, gdbgui is supported only with Python 3.10 or older. ' raise SystemExit('Unfortunately, gdbgui is supported only with Python 3.10 or older. '
'See: https://github.com/espressif/esp-idf/issues/10116. ' 'See: https://github.com/espressif/esp-idf/issues/10116. '
'Please use "idf.py gdb" or debug in Eclipse/Vscode instead.') 'Please use "idf.py gdb" or debug in Eclipse/Vscode instead.')
if sys.version_info[:2] >= (3, 13) and sys.platform != 'win32':
raise SystemExit('Unfortunately, gdbgui is supported only with Python 3.12 or older. '
'See: https://github.com/cs01/gdbgui/issues/494. '
'Please use "idf.py gdb" or debug in Eclipse/Vscode instead.')
raise FatalError('Error starting gdbgui. Please make sure gdbgui has been installed with ' raise FatalError('Error starting gdbgui. Please make sure gdbgui has been installed with '
'"install.{sh,bat,ps1,fish} --enable-gdbgui" and can be started.', ctx) '"install.{sh,bat,ps1,fish} --enable-gdbgui" and can be started.', ctx)

View File

@ -3,5 +3,6 @@
# gdbgui Python 3.11 issue https://github.com/cs01/gdbgui/issues/447 was fixed in 0.15.2.0. Windows users need an # gdbgui Python 3.11 issue https://github.com/cs01/gdbgui/issues/447 was fixed in 0.15.2.0. Windows users need an
# older Python to use since new gdbgui versions don't support Windows anymore. # older Python to use since new gdbgui versions don't support Windows anymore.
gdbgui; sys_platform != 'win32' # Python 3.13 is not supported: https://github.com/cs01/gdbgui/issues/494
gdbgui; sys_platform != 'win32' and python_version < "3.13"
gdbgui; sys_platform == 'win32' and python_version < "3.11" gdbgui; sys_platform == 'win32' and python_version < "3.11"