This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242577 - Inspector bug description does not support opening source file on needed line
Summary: Inspector bug description does not support opening source file on needed line
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal with 1 vote (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 13:21 UTC by Alexander Simon
Modified: 2014-04-24 02:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (5.02 KB, patch)
2014-03-05 13:30 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-03-05 13:21:58 UTC
Inspector window shows a bug description.
The description window supports html content and support links. It is OK.
Please provide an opening link on needed line.

For example C/C++ static analyzer produces description like this:
------------------8<-----------------
Null pointer dereference
    Read from null pointer
           at line 215 of /export1/home/alsimon/LLVM34/llvm/tools/clang/include/clang/AST/TemplateBase.h in function 'clang::TemplateArgument::getKind() const'.
           Function clang::DeclRefExpr::getTemplateArgs may return constant 'NULL' at line 1103, called at line 1989 of /export1/home/alsimon/LLVM34/llvm/tools/clang/include/clang/AST/RecursiveASTVisitor.h in function 'clang::RecursiveASTVisitor(anonymous namespace)::AnalysisConsumer>::TraverseDeclRefExpr(clang::DeclRefExpr*)'.
           Constant 'NULL' passed into function clang::RecursiveASTVisitor, argument TAL, from call at line 1989.
           Constant 'NULL' passed into function clang::RecursiveASTVisitor, argument ArgLoc, from call at line 1673 in function 'clang::RecursiveASTVisitor(anonymous namespace)::AnalysisConsumer>::TraverseTemplateArgumentLocsHelper(clang::TemplateArgumentLoc const*, unsigned int)'.
           Constant 'NULL' passed into function clang::TemplateArgumentLoc::getArgument, argument this, from call at line 766 in function 'clang::RecursiveASTVisitor(anonymous namespace)::AnalysisConsumer>::TraverseTemplateArgumentLoc(clang::TemplateArgumentLoc const&)'.
           Function clang::TemplateArgumentLoc::getArgument may return constant 'NULL' at line 460, called at line 766 in function 'clang::RecursiveASTVisitor ::TraverseTemplateArgumentLoc(clang::TemplateArgumentLoc const&)'.
           Constant 'NULL' passed into function clang::TemplateArgument::getKind, argument this, from call at line 768.
           Null pointer introduced at line 1103 of /export1/home/alsimon/LLVM34/llvm/tools/clang/include/clang/AST/Expr.h in function 'clang::DeclRefExpr::getTemplateArgs() const'.
------------------8<-----------------
All links in should be clickable and open source file on needed line.
Comment 1 Alexander Simon 2014-03-05 13:30:34 UTC
Created attachment 145778 [details]
proposed patch
Comment 2 Alexander Simon 2014-03-07 15:29:40 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/5fd0e74974cb
Comment 3 Quality Engineering 2014-03-10 02:24:12 UTC
Integrated into 'main-silver', will be available in build *201403100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5fd0e74974cb
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242577 Inspector bug description does not support opening source file on needed line
Comment 4 Milutin Kristofic 2014-04-18 13:16:32 UTC
Alex, will you as Author push this fix to patch1 or you expect me to push it? Thanks.
Comment 5 Alexander Simon 2014-04-18 13:44:05 UTC
(In reply to Milutin Kristofic from comment #4)
> Alex, will you as Author push this fix to patch1 or you expect me to push
> it? Thanks.
Please push the fix in releases.
Thanks, Alexander
Comment 6 Alexander Simon 2014-04-21 15:11:44 UTC
Milutin,

CND team going to transplant fix in releases branch release80 tomorrow.

Thanks,
Alexander.
Comment 7 Quality Engineering 2014-04-24 02:15:36 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/043cfd72736d
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242577 Inspector bug description does not support opening source file on needed line
(transplanted from 5fd0e74974cbeac1c1fc3fac277ad4d33e536bcd)