Bug 62668

Summary: Problems while using glimpse 4.17.0 for searching
Product: [Applications] kdevelop Reporter: George <kde.mail>
Component: doctreeviewAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: 2.1.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George 2003-08-14 19:35:15 UTC
Version:           2.1.5 (using KDE 3.1.3)
Installed from:    compiled sources
Compiler:          gcc version 2.95.3 20010315 (release)
OS:          Linux (i686) release 2.4.19

Indexing runs properly, but nothing is found when searching.

After a bit of investigation, I found the following:

index is created as follows (kdevelop/setup/ccreatedocdatabasedlg.cpp)
  void CCreateDocDatabaseDlg::slotOkClicked()
    ...
    *m_proc <<  "find "+ dirs +" -name '*.html' | glimpseindex " +
                    size_str +" -F -X -H "+ locateLocal("appdata","");
    m_proc->start(KShellProcess::NotifyOnExit,KShellProcess::AllOutput);
    ...

index is read as follows (kdevelop/ckdevelop.cpp)
  void CKDevelop::slotHelpSearchText(QString text){
    ...
    search_process << "glimpse";
    search_process << "-H" << locateLocal("appdata", "");
    search_process << "-U" << "-c" << "-y" << "'" + text +"'";
    search_process.start(KShellProcess::NotifyOnExit,KShellProcess::AllOutput);
    ...


As a newcomer to KDE, first I read the manuals.

Then I tried using glimpse directly to search index using
the above options.  This also produced no output.

Next tried 'glimpse -H . -X -c -y', which produced results.

Manually rebuilt index, ommiting '-X' option from glimpseindex
command.  glimpse '-U' produced results, but not in useable format.

After further reading and experimentation, it seems that
the glimpse '-U' option, in ver 4.17.0 at least, no longer 
works when '-X' is used with glimpseindex.

Also, even when '-X' is being used with glimpse:

      Search String: 'QFTP'
      Title				Hits 
      An FTP client			0 
      QNetworkProtocol Class		0 
      Annotated Class Index		0 
      QFtp Class			0 
      Input/Output and Networking	0 
      ...

Not sure what to do about this...

Best regards,
George
Comment 1 Amilcar do Carmo Lucas 2003-08-15 11:11:43 UTC
 Sorry, KDevelop 2.x is no longer under development. 
 
You are strongly advised to update to the latest CVS version of KDevelop3, 
code name gideon, take a look at: 
http://www.kdevelop.org/index.html?filename=branches_compiling.html 
for all the details you need. If you find a problem or need help please send a 
mail to the mailing list: 
http://www.kdevelop.org/index.html?filename=mailinglist.html 
or drop us a line at the channel #kdevelop on the server irc.kde.org using 
ksirc, for example. 
Please use the CVS version and compile it yourself because that way you can 
easily patch it if a bug is found. 
 
KDevelop3 can open Develop2 projects. To do so, goto the "Project -> Open 
Project ... " and select 
"KDevelop 2 Project Files" in the "Filter:". 
You can have and run KDevelop3 and KDevelop2 at the same time on the same 
computer without any problems. 
So migrating is a breeze. :) 
 
P.S. : The KDevelop team closed over 337 reported and confirmed bugs since the 
release of the last KDevelop2.x 
 
Comment 2 Jens Dagerbo 2003-08-24 02:50:50 UTC
Gideon doesn't support glimpse, only htdig. Closing.