robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[BUG] TimeoutError Unable to connect to RobotCode debugger on VsCode based IDE

Open joseajunior opened this issue 3 months ago • 2 comments

Describe the bug Several times when running from the play button of a test, I get this timeout error. And looking at the command line on the terminal, it seems that it doesn't load the whole command. (see image at the bottom) If I remove some arguments from the launch.json, it runs fine if it's able to load the whole command. It seems that even crashes the Pty host (not sure what that is)

Steps To Reproduce Steps to reproduce the behavior:

  1. Create a launch configuration with a large number of arguments.
  2. Open a Test Suite
  3. Try running the whole suite (or just a test that generates more terminal output)
  4. See error

Launch configuration:

{
    "name": "RobotCode: Run Current",
    "type": "robotcode",
    "request": "launch",
    "cwd": "${workspaceFolder}",
    "target": "${file}",
    "purpose": "default",
    "attachPython": true,
    "pythonConfiguration": {
        "justMyCode": false,
    },
    "args": [
        "-V",
        "${workspaceFolder}${pathSeparator}Variables${pathSeparator}robotVariables.py;${workspaceFolder}${pathSeparator}Variables${pathSeparator}example_local_variable_config.json",
        "--exclude",
        "deprecated",
        "--exclude",
        "test",
        "--exclude",
        "refactor",
        "--skip",
        "BUGGED:*",
        "--timestampoutputs",
        "--loglevel",
        "TRACE",
        "--report",
        "None",
        "--tagstatexclude",
        "META:*",
        "--tagstatexclude",
        "qTest:*",
        "--tagstatexclude",
        "ATTACHMENT:*",
        "--tagstatexclude",
        "JIRA:*",
        "--output",
        "${workspaceFolder}${pathSeparator}logs${pathSeparator}${fileBasenameNoExtension}${pathSeparator}${fileBasenameNoExtension}_output.xml",
        "--log",
        "${workspaceFolder}${pathSeparator}logs${pathSeparator}${fileBasenameNoExtension}${pathSeparator}${fileBasenameNoExtension}_log.html",
        "--removekeywords",
        "NAME:set log level",
    ]
}

Expected behavior It should run the test/suite without issues

Screenshots/ Videos Image

Logs The only relevant logs for the RobotCode output are this line: Starting debug launcher in stdio mode: /Users/w503876/Workspace/OTRRepos/frontend/env/bin/python -u /Users/w503876/.cursor/extensions/d-biehl.robotcode-1.8.0-universal/bundled/tool/robotcode debug-launch --stdio

Desktop (please complete the following information):

  • VS Code Version 1.99.3
  • RobotCode Version 1.8.0
  • OS: MacOS Sequoia 15.7.1 (Also reproducible in other OS)
  • Python Version 3.12.7
  • RobotFramework Version 7.3.1

joseajunior avatar Nov 14 '25 14:11 joseajunior