Open vamsivarma94 opened 1 month ago
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?
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
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 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
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 :)
@vamsivarma94 Is there anything new on this topic?
Currently i am using python 3.10.0 but still i am facing this issue.
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?
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
python -3.10.0 Robot Framework-5.0 RobotCode - Robot Framework Support v0.83.0 Robot Framework Language Server v1.12.0
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.
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:
Attached image