Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Debugger error when a test starts #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lhimo opened this issue May 8, 2025 · 2 comments
Open

[BUG] Debugger error when a test starts #437

lhimo opened this issue May 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@lhimo
Copy link

lhimo commented May 8, 2025

Describe the bug
When I run a test in debug mode, I sometimes get this error. When a test fails, the debugger often gets disconnected from the execution, which continues to the end without stopping at the breaking point.

Task exception was never retrieved
future: <Task finished name='handle_message' coro=<DebugAdapterProtocol.handle_message() done, defined at /Users/usr/.vscode/extensions/d-biehl.robotcode-1.2.0/bundled/libs/robotcode/debugger/protocol.py:150> exception=DebugAdapterErrorResponseError('invalid response (seq=-1 command=""): Invalid response. Could not find id \'6\' in request list Response(request_seq=6, success=True, command=\'evaluate\', message=None, type=\'response\', seq=4, body={\'result\': \'Unable to evaluate expression. No context available.\', \'type\': \'FatalError\', \'variablesReference\': 0}) (Message(format="Invalid response. Could not find id \'6\' in request list Response(request_seq=6, success=True, command=\'evaluate\', message=None, type=\'response\', seq=4, body={\'result\': \'Unable to evaluate expression. No context available.\', \'type\': \'FatalError\', \'variablesReference\': 0})", id=-1, variables=None, send_telemetry=None, show_user=True, url=None, url_label=None))')>
Traceback (most recent call last):
  File "/Users/usr/.vscode/extensions/d-biehl.robotcode-1.2.0/bundled/libs/robotcode/debugger/protocol.py", line 157, in handle_message
    self.handle_error_response(message)
  File "/Users/usr/.vscode/extensions/d-biehl.robotcode-1.2.0/bundled/libs/robotcode/debugger/protocol.py", line 337, in handle_error_response
    raise exception
robotcode.debugger.protocol.DebugAdapterErrorResponseError: invalid response (seq=-1 command=""): Invalid response. Could not find id '6' in request list Response(request_seq=6, success=True, command='evaluate', message=None, type='response', seq=4, body={'result': 'Unable to evaluate expression. No context available.', 'type': 'FatalError', 'variablesReference': 0}) (Message(format="Invalid response. Could not find id '6' in request list Response(request_seq=6, success=True, command='evaluate', message=None, type='response', seq=4, body={'result': 'Unable to evaluate expression. No context available.', 'type': 'FatalError', 'variablesReference': 0})", id=-1, variables=None, send_telemetry=None, show_user=True, url=None, url_label=None))

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to a test script
  2. Run it in debug mode

Expected behavior
The debugger shows no error and stops correctly at breaking points

Desktop (please complete the following information):

  • VS Code Version 1.99.3
  • RobotCode Version 1.2.0
  • OS: macOS 15.4.1
  • Python Version 3.12.2
  • RobotFramework Version 7.2.2
  • Tidy 4.16.0
  • Robocop 5.8.1
@lhimo lhimo added the bug Something isn't working label May 8, 2025
@d-biehl
Copy link
Member

d-biehl commented May 8, 2025

Cannot reproduce this bug. Do you use any specific library, variables, listeners or so?
Can you provide an example Test?

@lhimo
Copy link
Author

lhimo commented May 9, 2025

Here is the robot.toml I am using

args = ["--exclude", "tag_1", "--exclude", "unavailable"]

name = "project_name"
output-dir = "Reports"
python-path = ["PythonScripts"]

[env]
EMAIL = ""
FULLNAME = ""
IS_CONSUMER = ""
PREFIX = ""
PHONE = ""
SIGN = ""

OS = "ios"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants