Bug 43014 - Search: no way to trouble-shoot search database
Summary: Search: no way to trouble-shoot search database
Status: VERIFIED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Andrew Niefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-12 10:06 EDT by Brent Nicolle CLA
Modified: 2004-06-29 16:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Nicolle CLA 2003-09-12 10:06:48 EDT
In order for Search to be accurate, the user needs to tell the indexer
(via Project Properties) about the following search paths:
a) system include paths
b) include paths

This will be non-intuitive, since the compiler stops complaining
once the Makefile is correct, and the Search engine does not produce
user-visible errors.

After some discussion, the best solution for 1.2 seems to be a one-line
message on the search dialog stating something like:
"The search engine encountered problems.  Please see .metadata/indexer.log for 
details."

That log file would have messages like:
Unable to find foo.h
Comment 1 Brent Nicolle CLA 2004-05-11 16:46:12 EDT
Still an ongoing problem, but now we can point the user towards
Scanner Configuration.

Bumping priority because the lack of an intelligent solution here
looks bad and affects adoptability.
Comment 2 Bogdan Gheorghe CLA 2004-05-11 17:04:07 EDT
I have the patch with IProblem Markers, just need to put this in...
Comment 3 Bogdan Gheorghe CLA 2004-05-20 11:42:32 EDT
Andrew has my patch and has been working on this, so he can now have my defect 
as well... :)

Comment 4 Andrew Niefer CLA 2004-05-21 16:50:51 EDT
First patch has been commited. (2004-05-21)

There is now an option on the project properties indexer tab to turn on 
reporting of indexer problems.  It is off by default.

Currently we are only reporting preprocessor problems (ie can't find includes, 
etc).
Comment 5 Andrew Niefer CLA 2004-05-26 11:50:08 EDT
this is done.  We can raise a new (non-gating) defect if we require more 
options to refine the kinds of problems reported
Comment 6 Brent Nicolle CLA 2004-06-29 16:19:17 EDT
Verified on 2.0.0.200406280300.
Perfect. Thanks Andrew.