Re: [Lxr-general] use ident in Lxr
Brought to you by:
ajlittoz
From: Heimann, J. <jen...@ma...> - 2001-12-10 13:09:30
|
Hi Malcolm, in first, thanks for your answer! it is real, the table symbols is empty, but it doesn't change, if i run genxref again! Before i ran genxref again, i did the changes, you told me:=20 'range' =3D> [ 'mms/Kernel' ], ... perhaps someone can tell me, what this range - variable should do, perhaps there has to be an other path inside!? Tables in mysql overview: filled tables: files(606 rows), releases(606 rows), status(606 rows) empty tables: symbols, indexes, useage ... the last rows, if i run genxref! nothing special output, that = there was no correct funktion in this run! +++ 137 ### /Tools/MMSDefinesC.o mms/Kernel ### /Tools/MMSDefinesS.o mms/Kernel ### /Tools/Makefile mms/Kernel ### /Tools/MessageObjectImpl.cpp mms/Kernel --- /Tools/MessageObjectImpl.cpp mms/Kernel 1000893493-1066 --- /Tools/MessageObjectImpl.cpp 604 +++ 54 ### /Tools/ParserAddress.cpp mms/Kernel --- /Tools/ParserAddress.cpp mms/Kernel 1007050883-8816 --- /Tools/ParserAddress.cpp 605 +++ 423 ### /Tools/ServerRelayGlobalC.o mms/Kernel ### /Tools/ServerRelayGlobalS.o mms/Kernel ### /Tools/StringTokenizer.cpp mms/Kernel --- /Tools/StringTokenizer.cpp mms/Kernel 999676055-968 --- /Tools/StringTokenizer.cpp 606 +++ 44 ### /lost+found/ mms/Kernel ### /lost+found/MM7RPSoapServer.jar.a526bd44ca4211d5b08a000180d1c323 mms/Kernel webadmin(web)@mm-datenwicht:[]:/view/jheimann_mms_MS1_ProvisioningAgent/= mms/ ProvisioningAgent/Lxr09 [][8.1.6](10)> thanks for help! regards Jens -----Urspr=FCngliche Nachricht----- Von: Malcolm Box [mailto:ma...@br...] Gesendet: Freitag, 7. Dezember 2001 03:45 An: jen...@ma... Cc: lxr...@li... Betreff: Re: [Lxr-general] use ident in Lxr Hi Jens, The most likely cause of this problem is that for some reason the=20 generated index doesn't contain any data. Try using the mysql command=20 line to do a "select * from symbols;" and see if you get any results.=20 If not, then you need to run genxref --version=3D'mms/Kernel' --url=3D'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=20 you need to have a 'range' value for versions, so your config should = read: 'variables' =3D> { # Define typed variable "v", read valueset from file. 'v' =3D> {'name' =3D> 'Version', 'range' =3D> [ 'mms/Kernel' ], 'default' =3D> '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!!=20 >Also glimpse is in use, so the parts source navigation, freetext- and = file- >search are running!=20 > >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' =3D> >'/view/jheimann_mms_MS1_ProvisioningAgent/mms/ProvisioningAgent/Lxr09/b= in/g l >impse/bin/glimpse', > 'ectagsbin' =3D> '/usr/bin/ctags', > 'tmpdir' =3D> '/tmp', > 'genericconf' =3D> >'/view/jheimann_mms_MS1_ProvisioningAgent/mms/ProvisioningAgent/Lxr09/l= ib/L X >R/Lang/generic.conf' > >[...] > > 'baseurl' =3D> 'http://mm-datenwicht:8088/lxr', > 'virtroot' =3D> '/lxr', > =20 > 'variables' =3D> { > # Define typed variable "v", read valueset from file. > 'v' =3D> {'name' =3D> 'Version', >#[jens] 'range' =3D> [ 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' =3D> sub { return=20 > # >($files->allreleases($LXR::Common::pathname), > # >$files->allrevisions($LXR::Common::pathname)) > # }, # deferred function call. > > 'default' =3D> 'mms/Kernel'}, --> This is >my "trick" to interact the CVS and get the correct path > =20 > # Define typed variable "a". First value is default. > 'a' =3D> {'name' =3D> 'Architecture', > 'range' =3D> [qw(i386 alpha arm m68k mips ppc sparc sparc64)]}, > }, > =20 > 'maps' =3D> { > '/include/asm[^\/]*/' =3D> '/include/asm-$a/', > '/arch/[^\/]+/' =3D> '/arch/$a/', > }, > > =20 > # Templates used for headers and footers > 'htmlhead' =3D> 'html-head.html', > 'htmltail' =3D> 'html-tail.html', > 'htmldir' =3D> 'html-dir.html', > 'htmlident' =3D> 'html-ident.html', > =20 > 'sourcehead' =3D> 'html-head.html', > 'sourcedirhead' =3D> 'html-head.html', > 'stylesheet' =3D> '../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' =3D> '/view/jheimann_mms_MS1_ProvisioningAgent', > 'sourcerootname' =3D> 'AMIC', > > 'incprefix' =3D> ['/include', '/Public/Inc', '/ThirdParty/Inc', >'/Tools/Public/Inc', '/Public/Idl/GeneratedFiles'], #[jens] > >[...] ---> file-types, etc. no changes made > =20 > 'dbdir' =3D> '/home/webadmin', --> glimpse >needs this, here are my .glimpse_* - files stored!! > > 'dbname' =3D> 'dbi:mysql:dbname=3Dlxr', > 'dbuser' =3D> '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 > |