Skip to content

[BUG] Multiline status message truncates to first line only #625

Description

@kemilsoderberg

Describe the bug
Running a results show/diff/summary only shows the first line of the status message.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Run a test case with a message containing multiple lines
  2. Run robotcode results show/diff/summary
  3. Read output

If possible add some example source code like:

*** Test Cases ***
Demo Multi-line Failure
    [Documentation]    A single test that always fails with a multi-line message.
    Fail    This is the first line of the error\nAnd this is the second line\nAnd a third line for good measure
❯ robotcode results summary --failed
Summary — results/output.xml

 • Status: ❌ FAIL
 • Total: 1
 • Passed: 0
 • Failed: 1
 • Skipped: 0
 • Started: 2026-06-29 08:36:15
 • Ended: 2026-06-29 08:36:15
 • Elapsed: 32 ms
 • Messages: 1 FAIL

Failures (1)

 • ❌ FAIL Test Multiline Fail.Demo Multi-line Failure
   (test_multiline_fail.robot:2)
   ▌ This is the first line of the error

Expected behavior
All lines of object from output xml visible for the test case, up to message-chars limit.

Additional context
Even setting the message-chars parameter to 0 (unlimited) does not show all lines of the status message.

AI / tooling disclosure
No AI tool used.

Desktop (please complete the following information):

  • VS Code Version [1.124.2]
  • RobotCode Version [2.6.2]
  • OS: [Linux (WSL)]
  • Python Version [3.11.2]
  • RobotFramework Version [7.4.2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions