robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT] Keep hyperlink in console output

Open gohierf opened this issue 11 months ago • 1 comments

Is your enhancement request related to a problem? Please describe.
Currently, RobotCode disables ANSI hyperlinks in the console output by default, overriding Robot Framework 7.1’s behavior.

Setting the environment variable ROBOTCODE_DISABLE_ANSI_LINKS=false seem to re-enable hyperlinks, but this does not work consistently across different machines. Both machines in question are running identical versions of Windows 10 Pro, PowerShell 5.1, and Robot Framework 7.1 (Python 3.11.9 on win32).

Describe the solution you'd like
RobotCode should preserve Robot Framework’s default behavior by allowing ANSI hyperlinks in the console unless explicitly disabled. Instead of requiring users to set an environment variable to enable hyperlinks, the default should align with Robot Framework 7.1, while still providing an option to disable it if needed.

Describe alternatives you've considered

  • Keeping the current behavior but documenting ROBOTCODE_DISABLE_ANSI_LINKS more clearly so users can understand how to enable hyperlinks.
  • Providing a configuration option within RobotCode settings to control hyperlink behavior rather than relying on an environment variable.

Additional context
This enhancement would improve usability for users who rely on hyperlinks to quickly access reports from the console. Some may not be aware of the feature due to its current disabled-by-default state.

gohierf avatar Feb 07 '25 12:02 gohierf

Voting up for people like me - who prefer to open the RF logs in the default browser instead of VSC.

amochin avatar Feb 17 '25 10:02 amochin

I would also vote for this, opening the RF Logs in the default browser is a better alternative for better readability of the logs.

LucianCrainic avatar Feb 24 '25 09:02 LucianCrainic