Hello, just started with platformIO, i was trying to setup my nucleo L476R board, all went fine except for debugging in vscode.
I can debug via gdb, so board and debugger itself are ok, im using:
pio debug --interface=gdb -x .pioinit
Vscode debugging its not working, im using the PIO DEBUG profile that is autogenerated with the platform configuration, builds, uploads then stops, this log appears on debug console:
undefinedRuntimeError: Traceback (most recent call last):
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/platformio/main.py”, line 103, in main
cli() # pylint: disable=no-value-for-parameter
~~~^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/platformio/cli.py”, line 85, in invoke
return super().invoke(ctx)
~~~~~~~~~~~~~~^^^^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/platformio/debug/cli.py”, line 109, in cli
_run(os.getcwd(), debug_config, client_extra_args)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fran/.platformio/penv/lib64/python3.14/site-packages/platformio/debug/cli.py”, line 170, in _run
loop = asyncio.ProactorEventLoop() if IS_WINDOWS else asyncio.get_event_loop()
~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/lib64/python3.14/asyncio/events.py”, line 715, in get_event_loop
raise RuntimeError(‘There is no current event loop in thread %r.’
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread ‘MainThread’.
I have tried to updae python, reinstall platformIO, updated vscode and my system is up to date. (Linux Fedora 43)
I was not able to debug with an arduino board too, so i think its something python related, any ideas on how to solve?
Thanks.