Describe the bug
Since 0.82.1 I am unable to run a simple test suite.
To Reproduce
Steps to reproduce the behavior:
Install VSC.
Install Python 3.8.10 & RF 5.0.1
Create a simple robot file
Click on the play button next to a test case
See error
If possible add some example source code like:
*** Settings ***
Metadata Author Me
Suite Setup Global Suite Setup
Suite Teardown Global Suite Teardown
Test Setup Global Test Setup
Test Teardown Global Test Teardown
*** Comment ***
Additional comments or data. Ignored by Robot Framework.
*** Variables ***
@{example_of_global_list_variable} value 1 value 2 value 3
${example_of_global_scalar_variable} some value
*** Test Cases ***
Dummy TestCase Pass
[Tags] dummy_pass
[Setup] Log This setup overrides the global setup.
Log ${example_of_global_scalar_variable}
Log ${example_of_global_list_variable}
Log ${example_of_global_list_variable}[2]
[Teardown] Log This teardown overrides the global teardown.
Dummy TestCase Fail
[Tags] dummy_fail
No Operation
Fail Dummy TC
*** Keywords ***
Global Test Setup
No Operation
Global Test Teardown
No Operation
Global Suite Setup
No Operation
Global Suite Teardown
No Operation
Expected behavior
A test case is run.
Screenshots/ Videos
If applicable, add screenshots or videos to help explain your problem.
Logs
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\tool\robotcode__main.py", line 27, in
robotcode(
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1157, in call
return self.main(*args, kwargs)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, ctx.params)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 783, in invoke
return callback(*args, *kwargs)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\decorators.py", line 92, in new_func
return f(get_current_context(), args, **kwargs)
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\cli.py", line 141, in debug
from .run import run_debugger
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\run.py", line 31, in
from .debugger import Debugger
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\debugger.py", line 259, in
class Debugger:
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\debugger.py", line 1167, in Debugger
def is_windows_path(cls, path: Union[os.PathLike[str], str]) -> bool:
TypeError: 'ABCMeta' object is not subscriptable
Desktop (please complete the following information):
VS Code Version: 1.89.1
RobotCode Version >= 0.82.1
OS: W10
Python Version 3.8.10
RobotFramework Version 5.0.1
Additional tools
Additional context
Did not happen in version =< 0.82.0 .
Describe the bug Since 0.82.1 I am unable to run a simple test suite.
To Reproduce Steps to reproduce the behavior:
If possible add some example source code like:
Expected behavior A test case is run.
Screenshots/ Videos If applicable, add screenshots or videos to help explain your problem.
Logs Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\tool\robotcode__main.py", line 27, in
robotcode(
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1157, in call
from .debugger import Debugger
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\debugger.py", line 259, in
class Debugger:
File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\debugger.py", line 1167, in Debugger
def is_windows_path(cls, path: Union[os.PathLike[str], str]) -> bool:
TypeError: 'ABCMeta' object is not subscriptable
return self.main(*args, kwargs) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1078, in main rv = self.invoke(ctx) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx)) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\core.py", line 783, in invoke return callback(*args, *kwargs) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\click\decorators.py", line 92, in new_func return f(get_current_context(), args, **kwargs) File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\cli.py", line 141, in debug from .run import run_debugger File "c:\Users\User.vscode\extensions\d-biehl.robotcode-0.82.1\bundled\libs\robotcode\debugger\run.py", line 31, in
Desktop (please complete the following information):