robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

Getting timeout exceptions

Open vamsivarma94 opened this issue 1 year ago • 9 comments

Describe the bug Always when ever i am trying to run the test cases i am getting Debug adapter time out waiting for robot Connection.

To Reproduce Steps to reproduce the behavior:

  1. Go to Test cases file
  2. Click on Run on top of any test case

Attached image

image

vamsivarma94 avatar May 20 '24 09:05 vamsivarma94

Sorry, I need some more info.

Does a terminal window open? What is in it? Is there another error message somewhere?

Which Python, VSCode, RobotFramework version are you using?

d-biehl avatar May 20 '24 14:05 d-biehl

I think this is the same problem I am encountering with newer versions of RobotCode. Just running any .robot file leads to the traceback attached below. After 1-2 seconds the popup shown above appears.

Python 3.8.10 Code: 1.87.0 OS: Ubuntu (inside code-server: v4.22.0, if relevant) RobotCode: v0.82.3

I tried several versions and noticed the following

  • When I downgrade to RobotCode v0.82.0 everything works.
  • The issue first appears in v.0.82.1.

On Windows (Python 3.10.6 though) the newer versions work as well.

Full traceback.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/tool/robotcode/__main__.py", line 27, in <module>
    robotcode(
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/decorators.py", line 92, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/robotcode/debugger/cli.py", line 141, in debug
    from .run import run_debugger
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/robotcode/debugger/run.py", line 31, in <module>
    from .debugger import Debugger
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/bundled/libs/robotcode/debugger/debugger.py", line 259, in <module>
    class Debugger:
  File "/home/coder/.local/share/code-server/extensions/d-biehl.robotcode-0.82.3-universal/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
coder@b398d3e3580d:/workspace$ 

DanielPenning avatar May 24 '24 06:05 DanielPenning

@DanielPenning This error only occurs if you are using python 3.8, but this is allready fixed in RobotCode version 0.83.0, try the new version ;-)

You should think about updating your python ;-) see https://endoflife.date/python

d-biehl avatar May 24 '24 06:05 d-biehl

Hi @d-biehl, I can confirm that 0.83.0 fixes the problem mentioned above. Great. Thanks for that! Regarding the python version: Yep, we should move on, but some customers have old versions and we need to support that as well. Once security support ends, we will update :)

DanielPenning avatar May 24 '24 08:05 DanielPenning

@vamsivarma94 Is there anything new on this topic?

d-biehl avatar May 28 '24 06:05 d-biehl

Currently i am using python 3.10.0 but still i am facing this issue.

vamsivarma94 avatar May 29 '24 05:05 vamsivarma94

can you answer the other questions?

Does a terminal window open? What is in it? Is there another error message somewhere?

Which Python, VSCode, RobotFramework version are you using?

d-biehl avatar May 29 '24 05:05 d-biehl

Visual Studio code : Version: 1.89.1 (user setup) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.19045 image

python -3.10.0 Robot Framework-5.0 RobotCode - Robot Framework Support v0.83.0 Robot Framework Language Server v1.12.0

vamsivarma94 avatar May 29 '24 05:05 vamsivarma94

and the other question:

Does a terminal window open? What is in it? Is there another error message somewhere?

Why did you install ‘Robot Framework Language Server’? Please uninstall it if you want to use RobotCode, because they do the same things, some unexpected things can happen.

d-biehl avatar May 29 '24 05:05 d-biehl