investigation of Glimpse problem

Pascal Pascal_kdevelop at yahoo.com
Tue Aug 21 16:20:04 BST 2001


Hi KDevelopers,

I have spend some time investigating the 'glimpse problem' with the current 
kdevelop from CVS, and found the following glimpseindex weirdness:

If I *don't* use the -X option when building the index, e.g.

	find /home/pascal/.kde/share/apps/kdevelop/KDE-Documentation/ 
/usr/local/qt/doc/html/ -name '*.html' | glimpseindex -F -H 
/home/pascal/.kde/share/apps/kdevelop

then 

	glimpse -H /home/pascal/.kde/share/apps/kdevelop -U -c -y 'QFile'  

gives me some hits in the following form (only some shown).

	/usr/local/qt/doc/html/y2k.html: 2
	/usr/local/qt/doc/html/qfile-members.html: 5
	/usr/local/qt/doc/html/qfiledialog-members.html: 5

If, however, the '-X' option is included as KDevelop does in the call,

	ccreatedocdatabasedlg.cpp:233
	    *m_proc <<  "find "+ dirs +" -name '*.html' | glimpseindex " +
	                    size_str +" -F -X -H "+ locateLocal("appdata","");
	    m_proc->start(KShellProcess::NotifyOnExit,KShellProcess::AllOutput);

then a call to 'glimpse' as above will not yield any hits any more...

It looks like the -X option is somehow detrimental to the output...

The man page on http://webglimpse.org/glimpseindexhelp.html is inconsistent 
in that respect. The -X option is missing in the synopsis, but listed further 
down:

	SYNOPSIS 

	glimpseindex [ -abEfFiInostT -w number -dD filename(s) -H directory -M 
number -S number ] directory_name[s]

(...) --> futher down...

-X (starting at version 4.0B1) Extract titles from HTML pages and add the 
titles to the index (in .glimpse_filenames). This feature was added to 
improve the performance of WebGlimpse. Works only on files whose names end 
with .html, .htm, .shtml, and .shtm. (see glimpse.h/EXTRACT_INFO_SUFFIX to 
add to these suffixes.) The routine to extract titles is called extract_info, 
in index/filetype.c. This feature can be modified in various ways to extract 
info from many filetypes. The titles are appended to the corresponding 
filenames with a space separator. Glimpseindex assumes that filenames don't 
have spaces in them. 

I experienced this problem with glimpse 4.13 and with glimpse 4.14, both 
downloaded from the glimpse web page. Glimpse 4.14 yielded segmentation 
faults from time to time and is not yet released, but 4.13 is.
What is also funny is that glimpse -v outputs

	This is glimpse version 4.12, 1999.      

(the archive is glimpse-4_13_1_tar.gz)

What should be done now? I'll report that to the glimpse people, but in the 
meanwhile I guess most new KDevelop 2.0 users will use glimpse 4.13 or 4.14.

Pascal


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list