Skip to content

[BUG] SSH "[username@host]" badly treated as a log level with syntax highlighting features #896

Description

@RoroTitiFR

Title

The SSH line's heading which can be of the form "[username@host]" is wrongly treated as a log level by the syntax highlighting algorithm, causing displaying issues

Platform

Website - Chrome

Server Installation Method

Docker

Version

2.4.1

Troubleshooting

  • I have examined logs and tried to find the issue
  • I have reviewed opened and closed issues
  • I have tried restarting the application
  • I have checked open issues and ensured this is not a duplicate

The Problem

I noticed that syntax highlighting is causing issues with a precise syntax of some SSH line's heads.
More than the fact that this is not a correct displaying, it breaks display of long commands results.

As you can see on the following picture :

Image

As soon as I disable the log level detection, the problem solves by itself :

Image

My 2 cents on this is that it could be the syntax of "[username@host]" is treated as a timestamp ? And so the log level may be added to that.

How to Reproduce

This issue can be found on ArchLinux for example, which uses this syntax for SSH user and hostname indication.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status
    Bug Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions