diff --git a/HISTORY.rst b/HISTORY.rst index cd297f53..2e6d412d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -22,6 +22,7 @@ test-driven methodologies, and modern toolchains for unrivaled success. 6.1.19 (2025-??-??) ~~~~~~~~~~~~~~~~~~~ +* Added support for Python 3.14 * Fixed a regression issue where custom build flags were not properly reflected in the `compile_commands.json `__ file, ensuring accurate compilation database generation * Fixed an issue where fully-qualified serial port URLs (e.g., ``rfc2217://host:port``) were incorrectly treated as wildcard patterns (`issue #5225 `_) diff --git a/platformio/debug/cli.py b/platformio/debug/cli.py index d29b44d0..eb7815e8 100644 --- a/platformio/debug/cli.py +++ b/platformio/debug/cli.py @@ -167,7 +167,10 @@ def _configure( def _run(project_dir, debug_config, client_extra_args): - loop = asyncio.ProactorEventLoop() if IS_WINDOWS else asyncio.get_event_loop() + try: + loop = asyncio.ProactorEventLoop() if IS_WINDOWS else asyncio.get_event_loop() + except RuntimeError: + loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) client = GDBClientProcess(project_dir, debug_config)