You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformIO Version (platformio --version):
4.2.1 (Latest)
Description of problem
When attempting to execute local testing with the windows_x86 platform an error is thrown:
Error: Traceback (most recent call last):
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\__main__.py", line 102, in main
cli() # pylint: disable=no-value-for-parameter
File "c:\users\noah\.platformio\penv\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "c:\users\noah\.platformio\penv\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\__init__.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\noah\.platformio\penv\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\noah\.platformio\penv\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\noah\.platformio\penv\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\noah\.platformio\penv\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\test\command.py", line 170, in cli
"succeeded": tp.process(),
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\test\embedded.py", line 35, in process
if not self.build_or_upload(target):
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\test\processor.py", line 106, in build_or_upload
self.generate_outputcpp(
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\test\processor.py", line 194, in generate_outputcpp
tpl = Template(cpp_tpl).substitute(TRANSPORT_OPTIONS[self.get_transport()])
File "c:\users\noah\.platformio\penv\lib\site-packages\platformio\commands\test\processor.py", line 92, in get_transport
if transport not in TRANSPORT_OPTIONS:
UnboundLocalError: local variable 'transport' referenced before assignment
Looking at where this error is coming from, it looks like support for testing with windows_x86 simply wasn't added:
Configuration
Operating system:
Windows 10 10.0.18363
PlatformIO Version (
platformio --version
):4.2.1 (Latest)
Description of problem
When attempting to execute local testing with the
windows_x86
platform an error is thrown:Looking at where this error is coming from, it looks like support for testing with
windows_x86
simply wasn't added:platformio-core/platformio/commands/test/processor.py
Lines 85 to 96 in 314f634
native
platform and installing gcc/g++ into my path, I am able to test just fine.Steps to Reproduce
platformio.ini
:test
in the platformio IDE, or runplatformio test
.Let me know if you need more information.
The text was updated successfully, but these errors were encountered: