Re: [Lxr-general] use ident in Lxr
Brought to you by:
ajlittoz
From: Malcolm B. <ma...@br...> - 2001-12-07 02:49:04
|
Hi Jens, The most likely cause of this problem is that for some reason the generated index doesn't contain any data. Try using the mysql command line to do a "select * from symbols;" and see if you get any results. If not, then you need to run genxref --version='mms/Kernel' --url='whatever your url is' This should generate the indexes used by ident. If you have already run genxref and it still doesn't create any entries in the database, it could be that your config file is broken. I think you need to have a 'range' value for versions, so your config should read: 'variables' => { # Define typed variable "v", read valueset from file. 'v' => {'name' => 'Version', 'range' => [ 'mms/Kernel' ], 'default' => 'mms/Kernel', You don't need a "trick" for this - the versions variable has nothing to do with whether you are using CVS or plain filesystem access to the files. Perhaps the example name of the file is unclear? Hope this helps, Malcolm jen...@ma... wrote: >Hello all, > >I'm using Lxr 0.9, on a sun-solaris machine with an iPlanet webserver. >After a long time playing with LXR it runs now!! >Also glimpse is in use, so the parts source navigation, freetext- and file- >search are running! > >But what is with ident!? i cannot get it running!! the most interesting part >of the Lxr-tool for me!! >so, what do i have to do that i get the ident-part in funktion?? >I want to use the part "identifier search" and much more the part, where all >function names, variable names and typedef are as link inside the source >navigation. > >so, lets take a look, what i could have made wrong: > >parts of my lxr.conf file: > >[...] > > 'glimpsebin' => >'/view/jheimann_mms_MS1_ProvisioningAgent/mms/ProvisioningAgent/Lxr09/bin/gl >impse/bin/glimpse', > 'ectagsbin' => '/usr/bin/ctags', > 'tmpdir' => '/tmp', > 'genericconf' => >'/view/jheimann_mms_MS1_ProvisioningAgent/mms/ProvisioningAgent/Lxr09/lib/LX >R/Lang/generic.conf' > >[...] > > 'baseurl' => 'http://mm-datenwicht:8088/lxr', > 'virtroot' => '/lxr', > > 'variables' => { > # Define typed variable "v", read valueset from file. > 'v' => {'name' => 'Version', >#[jens] 'range' => [ readfile('src/cvsversions') ], >--> i cut this out, because i'm not using a CVS!! > > # If files within a tree can have different versions, > # e.g in a CVS tree, 'range' can be specified as a > # function to call for each file: > #'range' => sub { return > # >($files->allreleases($LXR::Common::pathname), > # >$files->allrevisions($LXR::Common::pathname)) > # }, # deferred function call. > > 'default' => 'mms/Kernel'}, --> This is >my "trick" to interact the CVS and get the correct path > > # Define typed variable "a". First value is default. > 'a' => {'name' => 'Architecture', > 'range' => [qw(i386 alpha arm m68k mips ppc sparc sparc64)]}, > }, > > 'maps' => { > '/include/asm[^\/]*/' => '/include/asm-$a/', > '/arch/[^\/]+/' => '/arch/$a/', > }, > > > # Templates used for headers and footers > 'htmlhead' => 'html-head.html', > 'htmltail' => 'html-tail.html', > 'htmldir' => 'html-dir.html', > 'htmlident' => 'html-ident.html', > > 'sourcehead' => 'html-head.html', > 'sourcedirhead' => 'html-head.html', > 'stylesheet' => '../templates/lxr.css', > ># sourceroot can either be the name of an ordinary directory ># containing one directory for each version, or cvs: and the name of a ># cvs repository > > 'sourceroot' => '/view/jheimann_mms_MS1_ProvisioningAgent', > 'sourcerootname' => 'AMIC', > > 'incprefix' => ['/include', '/Public/Inc', '/ThirdParty/Inc', >'/Tools/Public/Inc', '/Public/Idl/GeneratedFiles'], #[jens] > >[...] ---> file-types, etc. no changes made > > 'dbdir' => '/home/webadmin', --> glimpse >needs this, here are my .glimpse_* - files stored!! > > 'dbname' => 'dbi:mysql:dbname=lxr', > 'dbuser' => 'lxr' > >}) > > >I'm very hopeful that somebody can help me, because it runns in every Lxr - >Example, i have seen!! > >manny thanks > >Jens > >(if someone can answer me in german, he sould do that!!, thanks) > > >_______________________________________________ >Lxr-general mailing list >Lxr...@li... >https://lists.sourceforge.net/lists/listinfo/lxr-general > |