Bug 292745

Summary: Clickable assert errors
Product: [Developer tools] kdevplatform Reporter: David <daviddoria>
Component: run supportAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: wishlist Keywords: junior-jobs
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David 2012-01-29 01:38:14 UTC
Version:           git master (using Devel) 
OS:                Linux

Currently when an assert() fails, KDevelop prints

PatchBasedInpaintingNonInteractive: /media/portable/Projects/PatchBasedInpaintingDevelop/Inpainters/MaskedGridPatchInpainter.hpp:45: void MaskedGridPatchInpainter<FillStatusMap>::operator().... Assertion `get(fillStatusMap, source_node)' failed.

but you cannot click on this output to go to the specified file and line.

Reproducible: Always

Steps to Reproduce:
Make a failing assertion (assert()).

Actual Results:  
Output is not clickable.

Expected Results:  
Output should be clickable.
Comment 1 Milian Wolff 2012-02-06 21:26:24 UTC
yup, that would indeed be nice.
Comment 2 Kevin Funk 2016-01-04 23:31:08 UTC
This is already implemented for Q_ASSERT-style output.

Check kdevplatform.git:outputview/outputfilteringstrategies.cpp -- Patches adding support for assert() welcome.

Marking as junior-job
Comment 3 Milian Wolff 2016-01-05 09:20:29 UTC
sadly, this is not so easy b/c assert messages usually emit just the file name, not the full path.

see bug 354695 for more info and a preliminary patch.

*** This bug has been marked as a duplicate of bug 354695 ***