robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[BUG] Suite execution results in error on debugger #255

Closed david-stoklasek-tfs closed 1 month ago

david-stoklasek-tfs commented 1 month ago

Describe the bug Since 0.82.1 I am unable to run a simple test suite.

To Reproduce Steps to reproduce the behavior:

  1. Install VSC.
  2. Install Python 3.8.10 & RF 5.0.1
  3. Create a simple robot file
  4. Click on the play button next to a test case
  5. 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):

d-biehl commented 1 month ago

Forgot to adapt a little something for python 3.8 .... The bug is fixed in the next release ;-)