Opened 5 years ago

Last modified 3 years ago

#2926 new enhancement

Automatic link from log file to source code

Reported by: waitzmar Owned by:
Priority: patches-accepted Milestone: 0.9.+
Version: 0.8.9 Keywords: steps


Log files often contain references to source code. (E.g. compiler errors and warnings start with file:line:)

It would be a great help if those could be formatted as HTML links to a source code viewer.

Often the source code is already available online so that just the link has to be generated. The WarningCountingShellCommand already tracks the working directory and extracts file name and line number from warnings, so we already have all the information for a proper link.

I propose to add a callback function similar to the 'revlink' config to WarningCountingShellCommand, which returns an URL for a given warning. The generated HTML log file should then include this link. Extra points when we can support the same for error messages! :-)

Change History (4)

comment:1 Changed 5 years ago by dustin

  • Keywords steps added; log link source removed
  • Milestone changed from undecided to 0.9.+

Cool idea! Does "I propose" mean you're working on this?

comment:2 Changed 5 years ago by waitzmar

Well, I'm interested in this, but I don't know when I can dedicate some time for it.

comment:3 Changed 5 years ago by dustin

  • Priority changed from major to patches-accepted
Note: See TracTickets for help on using tickets.