lxr-general Mailing List for LXR Cross Referencer (Page 2)
Brought to you by:
ajlittoz
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
(13) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(8) |
Feb
(4) |
Mar
(6) |
Apr
(5) |
May
(5) |
Jun
(4) |
Jul
(8) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(10) |
2003 |
Jan
(9) |
Feb
(4) |
Mar
(8) |
Apr
(12) |
May
(13) |
Jun
(9) |
Jul
(13) |
Aug
(10) |
Sep
(3) |
Oct
(3) |
Nov
(19) |
Dec
(14) |
2004 |
Jan
(11) |
Feb
(10) |
Mar
(7) |
Apr
(5) |
May
(4) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(6) |
Dec
(6) |
2005 |
Jan
(11) |
Feb
(1) |
Mar
(6) |
Apr
(4) |
May
(7) |
Jun
(13) |
Jul
(9) |
Aug
(32) |
Sep
(27) |
Oct
(31) |
Nov
(17) |
Dec
(24) |
2006 |
Jan
(19) |
Feb
(25) |
Mar
(30) |
Apr
(28) |
May
(35) |
Jun
(38) |
Jul
(21) |
Aug
(31) |
Sep
(38) |
Oct
(68) |
Nov
(84) |
Dec
(83) |
2007 |
Jan
(45) |
Feb
(78) |
Mar
(72) |
Apr
(67) |
May
(51) |
Jun
(49) |
Jul
(125) |
Aug
(113) |
Sep
(74) |
Oct
(59) |
Nov
(63) |
Dec
(55) |
2008 |
Jan
(58) |
Feb
(53) |
Mar
(56) |
Apr
(224) |
May
(282) |
Jun
(269) |
Jul
(354) |
Aug
(552) |
Sep
(277) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
|
2010 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dr R. <drr...@gm...> - 2010-01-20 08:24:06
|
Hi and thanks for your reply Adrian, I have read that Swish-e documentation and there's this limitation: "The wildcard * may only be used at the end of a word." Using * in the middle of word/before word outputs error: Search failed: internal error err: Wildcard not allowed within a word ? works in the middle of word, but it can replace only one character.. I'll have to find out 1. if there are some tricks to get * wildcard work in the middle of word using e.g. MySQL/perl search formats or scripts. 2. or I'll just study whether the Glimpse supports other than trailing wildcards and switch engine from Swish-e to Glimpse. -Heikki On Mon, Jan 18, 2010 at 9:03 PM, Adrian Issott <adr...@ho...> wrote: > Hi Heikki, > > In the general search I believe the search term is given straight to > the underlying indexer, which in your case is Swish-e. Hence, the best > place to look for documentation on searching is their website (http://swish-e.org/docs/swish-search.html > ). > > It suggests that * would solve your problem as that matches zero or > more characters. Their example shows it in quotes so that might also > be needed. > > Hope that helps, > Adrian > > On 18 Jan 2010, at 13:25, Dr Roessi <drr...@gm...> wrote: > >> Hi, >> >> Is there any other wildcards than '?', that can be used in the middle >> of word when I am using general search? Or is there any way to >> implement such a feature to Lxr? E.g. I need to find every word that >> begins with "Please" and ends to "Me" => Please*Me could find words >> PleaseHelpMe and PleaseYearghMe. >> >> There were already one mail about this, but it was related to >> identifier search and I was not able to use dot (.) as a wildcard. [ >> [Lxr-general] wildcard identifier search ] >> >> I am using Lxr-0.9.6 and Swish-e-2.4.7. >> >> Br, >> Heikki >> >> --- >> --- >> --- >> --------------------------------------------------------------------- >> Throughout its 18-year history, RSA Conference consistently attracts >> the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important >> issues through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Lxr-general mailing list >> Lxr...@li... >> https://lists.sourceforge.net/lists/listinfo/lxr-general >> > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Adrian I. <adr...@ho...> - 2010-01-18 19:03:16
|
Hi Heikki, In the general search I believe the search term is given straight to the underlying indexer, which in your case is Swish-e. Hence, the best place to look for documentation on searching is their website (http://swish-e.org/docs/swish-search.html ). It suggests that * would solve your problem as that matches zero or more characters. Their example shows it in quotes so that might also be needed. Hope that helps, Adrian On 18 Jan 2010, at 13:25, Dr Roessi <drr...@gm...> wrote: > Hi, > > Is there any other wildcards than '?', that can be used in the middle > of word when I am using general search? Or is there any way to > implement such a feature to Lxr? E.g. I need to find every word that > begins with "Please" and ends to "Me" => Please*Me could find words > PleaseHelpMe and PleaseYearghMe. > > There were already one mail about this, but it was related to > identifier search and I was not able to use dot (.) as a wildcard. [ > [Lxr-general] wildcard identifier search ] > > I am using Lxr-0.9.6 and Swish-e-2.4.7. > > Br, > Heikki > > --- > --- > --- > --------------------------------------------------------------------- > Throughout its 18-year history, RSA Conference consistently attracts > the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important > issues through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Dr R. <drr...@gm...> - 2010-01-18 13:25:29
|
Hi, Is there any other wildcards than '?', that can be used in the middle of word when I am using general search? Or is there any way to implement such a feature to Lxr? E.g. I need to find every word that begins with "Please" and ends to "Me" => Please*Me could find words PleaseHelpMe and PleaseYearghMe. There were already one mail about this, but it was related to identifier search and I was not able to use dot (.) as a wildcard. [ [Lxr-general] wildcard identifier search ] I am using Lxr-0.9.6 and Swish-e-2.4.7. Br, Heikki |
From: Robert D. P. <ROB...@sa...> - 2009-11-18 17:50:03
|
On Tue, 2009-11-17 at 19:37 -0800, Robert D. Penny wrote: Of course, when I said I could do this: > I can > > ./genxref --url=http://localhost/lxr/source/metis > ./genxref --url=/var/www/localhost/lxr/source/geant > > and generate the appropriate indexes. However, when I try to access > What I really meant to say was: ./genxref --url=http://localhost/lxr/source/metis ./genxref --url=http://localhost/lxr/source/geant However, that was probably obvious. Back to the issue at hand though... Thinking the problem over further this morning though, I think I've answered my own question about how to use a multiple configuration block section in lxr.conf. I'm guessing I should create the directory path /var/www/localhost/htdocs/lxr Then under this directory create something like a master directory /var/www/localhost/htdocs/lxr/master I should move lxr.conf, .htaccess, and all of the html template files to this directory. Then, for every source tree I want to index, I just create a different symbolic link to this master directory for the webserver to access. /var/www/localhost/htdocs/lxr/geant->/var/www/localhost/htdocs/lxr/master /var/www/localhost/htdocs/lxr/metis->/var/www/localhost/htdocs/lxr/master etc. I'll be working with the same html template files, .htaccess file and the lxr.conf file across all directories. However, when accessing the directories through the webserver, I'll be coming in through different URLs, and the different blocks in lxr.conf will be activated. So I'd index this setup with: ./genxref --url=http://localhost/lxr/geant/source ./genxref --url=http://localhost/lxr/metis/source ... and access with: http://localhost/lxr/geant/source http://localhost/lxr/metis/source Was this the intended setup for a multi-block lxr.conf setup? Or is there a way that avoids all of the symlink directories and works directly through the various source, diff, find, ident, etc. scripts. Thanks, -- Robert D. Penny <rob...@sa...> |
From: Robert D. P. <ROB...@sa...> - 2009-11-18 03:53:01
|
Hi, I've installed lxr-0.9.6 on a Gentoo system and have some configuration issues that I'm hoping someone familiar with lxr can quickly answer. I can set up lxr to cross reference a single source directory tree and it works like a charm. What I'd like to do though is have lxr cross-reference multiple separate source trees and present this through different urls. I'm looking for recommendations on the right way to do this. Clearly, lxr.conf can hold multiple configuration sections that are matched against the 'baseurl' or 'baseurl_aliases' for each section. However, I can't quite work out the correct variable values to get the multiple configuration setup to work. I currently have lxr installed under /var/www/localhost/htdocs/lxr My lxr.conf for indexing a single source tree (only one version) in /usr/local/src/metis-4.0 is set up as: { 'baseurl' => 'http://localhost/lxr' 'virtroot' => '/lxr', 'variables' => { 'v' => { 'name' => 'Version', 'range' => [sq(metis-4.0)], 'default' => 'metis-4.0' }, .... 'sourceroot' => '/usr/local/src', } ... and this all works fine. (Probably I should have sourceroot => /usr/local/src/metis-4.0 and the version => '', but that's probably not relevant to this.) I can ./genxref --url=http://localhost/lxr to generate the cross references then browse to http://localhost/lxr/source to view the directories and cross-referenced files. What I'd like to be able to do is access different source trees through different urls. Something like: http://localhost/lxr/source/metis http://localhost/lxr/source/geant Is this possible? I obviously could just duplicate the script directories.... create something like: /var/www/localhost/htdocs/lxr/metis /var/www/localhost/htdocs/lxr/geant and "cp -r" the various scripts like source, find, genxref,ident, search and *.html to the duplicate directories. Or, I could even just symlink them. Or, for that matter, I could symlink the various source tree directories together under one root directory and index this. However, the fact that lxr.conf handles multiple configuration sections makes me think there should be a more elegant way to set this up. I can ./genxref --url=http://localhost/lxr/source/metis ./genxref --url=/var/www/localhost/lxr/source/geant and generate the appropriate indexes. However, when I try to access http://localhost/lxr/source/metis the path to the file or directory being looked for typically has a spurious extra "metis" or "geant" in it. Is there some trick I'm missing? What would be fabulous is a sample lxr.conf with multiple configurations in it and the corresponding cgi script directory layout to match. Thanks, -- Robert D. Penny <rob...@sa...> |
From: Malcolm B. <mal...@gm...> - 2009-11-04 11:04:55
|
On Wed, Nov 4, 2009 at 9:36 AM, Dr Roessi <drr...@gm...> wrote: > Every problem we experienced were caused because lack of access > rights. Last problem was caused because search (general search) was > unable to open index files from /home/admin/swish-e. Index files can > be accessed from folder under root (e.g. /some_folder). > > Thank you for your help and quick replies Malcolm. You're welcome, glad you got it working. Happy LXR-ing. Malcolm |
From: Dr R. <drr...@gm...> - 2009-11-04 09:36:46
|
Hi, Every problem we experienced were caused because lack of access rights. Last problem was caused because search (general search) was unable to open index files from /home/admin/swish-e. Index files can be accessed from folder under root (e.g. /some_folder). Thank you for your help and quick replies Malcolm. -Heikki On Wed, Nov 4, 2009 at 9:32 AM, Dr Roessi <drr...@gm...> wrote: > Hi, > > At the moment this root is just fine place to keep our sources, so > I'll leave that fighting with Apache later. > > - Did genxref generate swish-e index files in $swishdir? > > Yes. Folder /home/admin/swish-e contains following files: > -rw-r--r-- 1 root root 0 Nov 3 12:54 testFolder.filenames > -rw-r--r-- 1 root root 4 Nov 3 12:54 testFolder.index.prop.temp > -rw-r--r-- 1 root root 802160 Nov 3 12:54 testFolder.index.temp > > I just created new index from new folder and I got only > myFileName.filenames file. Point is that indexing seems to do > something, and I get at least .filenames file. > > - Using swish-e from the command line, can you search using the indexes created? > > Looks like command line search is trying to use wrong index file, > because I get error: > "err: Index file error: Could not open the index file 'index.swish-e': > No such file or directory" > I can not find any parameters that could be used to search using my > own testFolder.* -indexes. I have set variable: > swishdir=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin:/home/admin/swish-e, > like described in installation instructions. > > - Can the user that apache is running as access those indexes? > > I don't have answer for this yet. Might be the problem as well, and I > am investigating this. > > -Heikki > > On Tue, Nov 3, 2009 at 3:43 PM, Malcolm Box <mal...@gm...> wrote: >> >> On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: >> > By moving sources from "/home/admin/indexed-src/SW_200936/" to >> > "/testFolder/SW_200936/" solved most of the problems. >> >> That would suggest that /home/admin/indexed-src was not readable by >> the user that apache is running as. >> >> A simple test of this is to configure /home/admin/indexed-src as a >> normal Apache document directory and see if it can be read. >> >> > Currently sources can >> > be browsed via web interface and identifier search works ok. >> >> Good! >> >> > Remaining problem is general search. Even if I search text that is included in indexed >> > files for sure, I get reply "0 files found." and error "Version 'SW_200936' >> > has not been indexed and is unavailable for searching." >> >> Possibly the same problem? >> Things to check: >> >> - Did genxref generate swish-e index files in $swishdir? >> - Using swish-e from the command line, can you search using the indexes created? >> - Can the user that apache is running as access those indexes? >> >> Malcolm >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Lxr-general mailing list >> Lxr...@li... >> https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Dr R. <drr...@gm...> - 2009-11-04 07:32:28
|
Hi, At the moment this root is just fine place to keep our sources, so I'll leave that fighting with Apache later. - Did genxref generate swish-e index files in $swishdir? Yes. Folder /home/admin/swish-e contains following files: -rw-r--r-- 1 root root 0 Nov 3 12:54 testFolder.filenames -rw-r--r-- 1 root root 4 Nov 3 12:54 testFolder.index.prop.temp -rw-r--r-- 1 root root 802160 Nov 3 12:54 testFolder.index.temp I just created new index from new folder and I got only myFileName.filenames file. Point is that indexing seems to do something, and I get at least .filenames file. - Using swish-e from the command line, can you search using the indexes created? Looks like command line search is trying to use wrong index file, because I get error: "err: Index file error: Could not open the index file 'index.swish-e': No such file or directory" I can not find any parameters that could be used to search using my own testFolder.* -indexes. I have set variable: swishdir=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin:/home/admin/swish-e, like described in installation instructions. - Can the user that apache is running as access those indexes? I don't have answer for this yet. Might be the problem as well, and I am investigating this. -Heikki On Tue, Nov 3, 2009 at 3:43 PM, Malcolm Box <mal...@gm...> wrote: > > On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: > > By moving sources from "/home/admin/indexed-src/SW_200936/" to > > "/testFolder/SW_200936/" solved most of the problems. > > That would suggest that /home/admin/indexed-src was not readable by > the user that apache is running as. > > A simple test of this is to configure /home/admin/indexed-src as a > normal Apache document directory and see if it can be read. > > > Currently sources can > > be browsed via web interface and identifier search works ok. > > Good! > > > Remaining problem is general search. Even if I search text that is included in indexed > > files for sure, I get reply "0 files found." and error "Version 'SW_200936' > > has not been indexed and is unavailable for searching." > > Possibly the same problem? > Things to check: > > - Did genxref generate swish-e index files in $swishdir? > - Using swish-e from the command line, can you search using the indexes created? > - Can the user that apache is running as access those indexes? > > Malcolm > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Malcolm B. <mal...@gm...> - 2009-11-03 13:43:49
|
On Tue, Nov 3, 2009 at 11:35 AM, Dr Roessi <drr...@gm...> wrote: > By moving sources from "/home/admin/indexed-src/SW_200936/" to > "/testFolder/SW_200936/" solved most of the problems. That would suggest that /home/admin/indexed-src was not readable by the user that apache is running as. A simple test of this is to configure /home/admin/indexed-src as a normal Apache document directory and see if it can be read. > Currently sources can > be browsed via web interface and identifier search works ok. Good! > Remaining problem is general search. Even if I search text that is included in indexed > files for sure, I get reply "0 files found." and error "Version 'SW_200936' > has not been indexed and is unavailable for searching." Possibly the same problem? Things to check: - Did genxref generate swish-e index files in $swishdir? - Using swish-e from the command line, can you search using the indexes created? - Can the user that apache is running as access those indexes? Malcolm |
From: Dr R. <drr...@gm...> - 2009-11-03 11:36:01
|
Hi, Old issues are solved now, but substituted by new ones. Here's current situation. By moving sources from "/home/admin/indexed-src/SW_200936/" to "/testFolder/SW_200936/" solved most of the problems. Currenly sources can be browsed via web interface and identifier search works ok. Remaining problem is general search. Even if I search text that is included in indexed files for sure, I get reply "0 files found." and error "*Version 'SW_200936' has not been indexed and is unavailable for searching.*" There seems to be one reported bug that is related to this same issue with " *Version 'XXXXXXX' has not been indexed and is unavailable for searching.*". I wonder is this fixed into lxr version lxr-0.9.6 or fixed at all. https://bugs.maemo.org/show_bug.cgi?id=406 Br, Heikki > > On Tue, Nov 3, 2009 at 9:50 AM, Tommi Halonen <to...@dr...> wrote: > >> Back in the business after a while... >> DrRoessi continued our effort to get LXR running and got already some new >> info. Could you please post the current situation here. >> >> Big thanks Malcolm for your support! >> >> -Tommi >> >> >> On Wed, 21 Oct 2009 10:21:23 +0100, Malcolm Box <mal...@gm...> >> wrote: >> > On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: >> >> On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm... >> > >> >> wrote: >> >>> >> >>> Looking at the config file, your source code should be in the >> directory: >> >>> >> >>> /home/admin/indexed-src/SW_200936/ >> >>> >> >>> does this directory exist? >> >> >> >> Yes it does. It and its sub directories also all have read and execute >> >> rights for u/g/o (which might not be a good idea, but I wanted to make >> >> sure >> >> it's not causing problems). Is Apache looking for the source files >> >> directly >> >> from there or from the DB? >> > >> > LXR loads the source files directly from there, they are not saved in >> > the database. >> > >> > This is puzzling - as far as I can see the configuration is correct >> > and you should be seeing the source files. >> > >> > Can you confirm that genxref has successfully put data in the database >> > - ie you saw a log of each file processed when you ran genxref, and >> > the database has contents? If that's the case then LXR can definitely >> > find the code. >> > >> > When you say the portal displays fine at http://myip/lxr/source/, do >> > you mean you see the LXR header etc but where you would expect to see >> > a listing of the top level directory of the source code you see "The >> > directory / does not exist"? >> > >> > If none of those provide a eureka moment then could you try adding >> > some debug prints to LXR to see what's going wrong? >> > >> > - At around line 150 of source, where it reads: >> > 151 @nodes = $files->getdir($dir, $releaseid); >> > 152 unless (@nodes) { >> > 153 print( "<p align=\"center\">\n<i>The directory " >> . $dir >> > 154 . " does not exist.</i>\n"); >> > >> > Can you add a print of $releaseid and $files >> > >> > Then in lib/LXR/Files/Plain.pm at line 99 >> > 99 sub getdir { >> > 100 my ($self, $pathname, $releaseid) = @_; >> > 101 my ($dir, $node, @dirs, @files); >> > >> > Add a print of $pathname, $releaseid, and at line 108 >> > 107 $dir = $self->toreal($pathname, $releaseid); >> > 108 opendir(DIR, $dir) || return (); >> > >> > add a print of $dir which will show what directory LXR is trying to >> open. >> > >> > Hopefully one of these will reveal what's going wrong! >> > >> > Cheers, >> > >> > Malcolm >> > >> > >> >> ------------------------------------------------------------------------------ >> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> > is the only developer event you need to attend this year. Jumpstart your >> > developing skills, take BlackBerry mobile applications to market and >> stay >> >> > ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> > http://p.sf.net/sfu/devconference >> > _______________________________________________ >> > Lxr-general mailing list >> > Lxr...@li... >> > https://lists.sourceforge.net/lists/listinfo/lxr-general >> > > |
From: Tommi H. <to...@dr...> - 2009-11-03 07:51:12
|
Back in the business after a while... DrRoessi continued our effort to get LXR running and got already some new info. Could you please post the current situation here. Big thanks Malcolm for your support! -Tommi On Wed, 21 Oct 2009 10:21:23 +0100, Malcolm Box <mal...@gm...> wrote: > On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: >> On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> >> wrote: >>> >>> Looking at the config file, your source code should be in the directory: >>> >>> /home/admin/indexed-src/SW_200936/ >>> >>> does this directory exist? >> >> Yes it does. It and its sub directories also all have read and execute >> rights for u/g/o (which might not be a good idea, but I wanted to make >> sure >> it's not causing problems). Is Apache looking for the source files >> directly >> from there or from the DB? > > LXR loads the source files directly from there, they are not saved in > the database. > > This is puzzling - as far as I can see the configuration is correct > and you should be seeing the source files. > > Can you confirm that genxref has successfully put data in the database > - ie you saw a log of each file processed when you ran genxref, and > the database has contents? If that's the case then LXR can definitely > find the code. > > When you say the portal displays fine at http://myip/lxr/source/, do > you mean you see the LXR header etc but where you would expect to see > a listing of the top level directory of the source code you see "The > directory / does not exist"? > > If none of those provide a eureka moment then could you try adding > some debug prints to LXR to see what's going wrong? > > - At around line 150 of source, where it reads: > 151 @nodes = $files->getdir($dir, $releaseid); > 152 unless (@nodes) { > 153 print( "<p align=\"center\">\n<i>The directory " . $dir > 154 . " does not exist.</i>\n"); > > Can you add a print of $releaseid and $files > > Then in lib/LXR/Files/Plain.pm at line 99 > 99 sub getdir { > 100 my ($self, $pathname, $releaseid) = @_; > 101 my ($dir, $node, @dirs, @files); > > Add a print of $pathname, $releaseid, and at line 108 > 107 $dir = $self->toreal($pathname, $releaseid); > 108 opendir(DIR, $dir) || return (); > > add a print of $dir which will show what directory LXR is trying to open. > > Hopefully one of these will reveal what's going wrong! > > Cheers, > > Malcolm > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Malcolm B. <mal...@gm...> - 2009-10-21 09:21:53
|
On Tue, Oct 20, 2009 at 3:40 PM, Tommi Halonen <to...@dr...> wrote: > On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> > wrote: >> >> Looking at the config file, your source code should be in the directory: >> >> /home/admin/indexed-src/SW_200936/ >> >> does this directory exist? > > Yes it does. It and its sub directories also all have read and execute > rights for u/g/o (which might not be a good idea, but I wanted to make sure > it's not causing problems). Is Apache looking for the source files directly > from there or from the DB? LXR loads the source files directly from there, they are not saved in the database. This is puzzling - as far as I can see the configuration is correct and you should be seeing the source files. Can you confirm that genxref has successfully put data in the database - ie you saw a log of each file processed when you ran genxref, and the database has contents? If that's the case then LXR can definitely find the code. When you say the portal displays fine at http://myip/lxr/source/, do you mean you see the LXR header etc but where you would expect to see a listing of the top level directory of the source code you see "The directory / does not exist"? If none of those provide a eureka moment then could you try adding some debug prints to LXR to see what's going wrong? - At around line 150 of source, where it reads: 151 @nodes = $files->getdir($dir, $releaseid); 152 unless (@nodes) { 153 print( "<p align=\"center\">\n<i>The directory " . $dir 154 . " does not exist.</i>\n"); Can you add a print of $releaseid and $files Then in lib/LXR/Files/Plain.pm at line 99 99 sub getdir { 100 my ($self, $pathname, $releaseid) = @_; 101 my ($dir, $node, @dirs, @files); Add a print of $pathname, $releaseid, and at line 108 107 $dir = $self->toreal($pathname, $releaseid); 108 opendir(DIR, $dir) || return (); add a print of $dir which will show what directory LXR is trying to open. Hopefully one of these will reveal what's going wrong! Cheers, Malcolm |
From: Tommi H. <to...@dr...> - 2009-10-20 14:40:56
|
On Mon, 19 Oct 2009 19:08:25 +0100, Malcolm Box <mal...@gm...> wrote: > > Looking at the config file, your source code should be in the directory: > > /home/admin/indexed-src/SW_200936/ > > does this directory exist? Yes it does. It and its sub directories also all have read and execute rights for u/g/o (which might not be a good idea, but I wanted to make sure it's not causing problems). Is Apache looking for the source files directly from there or from the DB? -Tommi |
From: Malcolm B. <mal...@gm...> - 2009-10-19 18:09:03
|
On Mon, Oct 19, 2009 at 9:07 AM, Tommi Halonen <to...@dr...> wrote: > Here the file, attached. > > -Tommi Looking at the config file, your source code should be in the directory: /home/admin/indexed-src/SW_200936/ does this directory exist? The general pattern is that the source code lives in $sourceroot/$version/ where $version is one of the versions configured for $v in the lxr.conf file. Hope this helps! Malcolm |
From: Tommi H. <to...@dr...> - 2009-10-19 08:07:30
|
Here the file, attached. -Tommi On Sat, 17 Oct 2009 16:28:06 +0100, Malcolm Box <mal...@gm...> wrote: > It sounds like there's some misconfiguration in the lxr.conf file. > Can you post the file? > > And don't worry, LXR works fine with Symbian C++ (since I used to work > for Symbian!) > > M > > On Sat, Oct 17, 2009 at 8:31 AM, Tommi Halonen <to...@dr...> wrote: >> Hi! >> >> I've installed LXR 0.9.6 on Centos 5.3. >> Using aAache2, mySQL, Swhish-e >> >> I've followed all the installation instructions and (hopefully) have >> remembered to execute all the steps. >> >> http://myip/lxr/source/ displays the portal fine, but doesn't show any >> source code. It says "The directory / does not exist." >> >> LXR is in /usr/local/lxr/ >> The source code itself is in /home/admin/indexed-src, which has been >> configured to lxr.conf. (src is Symbian C++, please don't let that >> affect= >> :) >> Swish-e has written 3 files in /home/admin/swish-e/ >> The mySQL DB was configured by initdb-mysql and genxref has written into >> it. >> >> >> Right now I'm running out of ideas what to check next. Please ask more >> details about my environment / setup, the above probably doesn't have >> all >> the needed info. >> >> Thanks for any help! >> >> -Tommi >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Lxr-general mailing list >> Lxr...@li... >> https://lists.sourceforge.net/lists/listinfo/lxr-general >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general |
From: Malcolm B. <mal...@gm...> - 2009-10-17 15:28:39
|
It sounds like there's some misconfiguration in the lxr.conf file. Can you post the file? And don't worry, LXR works fine with Symbian C++ (since I used to work for Symbian!) M On Sat, Oct 17, 2009 at 8:31 AM, Tommi Halonen <to...@dr...> wrote: > Hi! > > I've installed LXR 0.9.6 on Centos 5.3. > Using aAache2, mySQL, Swhish-e > > I've followed all the installation instructions and (hopefully) have > remembered to execute all the steps. > > http://myip/lxr/source/ displays the portal fine, but doesn't show any > source code. It says "The directory / does not exist." > > LXR is in /usr/local/lxr/ > The source code itself is in /home/admin/indexed-src, which has been > configured to lxr.conf. (src is Symbian C++, please don't let that > affect= > :) > Swish-e has written 3 files in /home/admin/swish-e/ > The mySQL DB was configured by initdb-mysql and genxref has written into > it. > > > Right now I'm running out of ideas what to check next. Please ask more > details about my environment / setup, the above probably doesn't have > all > the needed info. > > Thanks for any help! > > -Tommi > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lxr-general mailing list > Lxr...@li... > https://lists.sourceforge.net/lists/listinfo/lxr-general > |
From: Tommi H. <to...@dr...> - 2009-10-17 07:51:22
|
Hi! I've installed LXR 0.9.6 on Centos 5.3. Using aAache2, mySQL, Swhish-e I've followed all the installation instructions and (hopefully) have remembered to execute all the steps. http://myip/lxr/source/ displays the portal fine, but doesn't show any source code. It says "The directory / does not exist." LXR is in /usr/local/lxr/ The source code itself is in /home/admin/indexed-src, which has been configured to lxr.conf. (src is Symbian C++, please don't let that affect= :) Swish-e has written 3 files in /home/admin/swish-e/ The mySQL DB was configured by initdb-mysql and genxref has written into it. Right now I'm running out of ideas what to check next. Please ask more details about my environment / setup, the above probably doesn't have all the needed info. Thanks for any help! -Tommi |
From: Malcolm B. <mal...@gm...> - 2009-05-06 21:23:26
|
Hi, I'm wondering what the performance (dis)advantage is of having DBI::AutoCommit switched off for Postgresql. As part of a general tidy-up of the Index classes I'm considering switching AutoCommit to on - but I don't have a decent-sized install to check the performance impact. Has anyone got a large-ish installation running using Postgres who could measure the performance with AutoCommit switched on and off - the relevant line to change is line 43 in lib/LXR/Index/Postgres.pm. Any data would be much appreciated! Cheers, Malcolm |
From: Malcolm B. <mal...@gm...> - 2009-04-01 19:05:31
|
Shockingly LXR has managed to get to v0.9.6 and thousands of downloads without one of the crucial elements for a great piece of software. No, not a great UI. No, not lots of features. No, not even very few bugs. What LXR lacks is a logo. How can LXR hold its head up in the pantheon of free software when it is handicapped, nay crippled by such a dreadful lack? I say enough is a enough. No longer must LXR make do with three simple letters - from now on LXR shall have a logo to dazzle, impress and wow its friends. This is a call to create that logo for LXR and win fame and fortune around the world. (OK, I'm kidding about the fortune. And the fame. But anyway...) I'm no graphic artist, as will be obvious from the feeble attempt attached. So please, if you can do better then send in your suggestions and ideas to lxr...@li.... The winner will be selected by members of the LXR mailing lists, so get your pixels or paintbrushes out and show the world what you can do! Cheers, Malcolm |
From: Nicholas T. K. <nic...@ce...> - 2008-08-25 08:08:04
|
Hello, I'm trying to look up code in the LXR for SUSYBSMAnalysis/Zprime2muAnalysis/ in CMSSW_2_1_0. I am able to check out the code, but I am unable to see it in http://cmslxr.fnal.gov/lxr/source/SUSYBSMAnalysis/ This simply confuses me. It would seem that if I can check out code for this CMSSW release, it would be in the LXR for viewing / searching. Help? Thank you, Nick Kypreos |
From: Gene Sm(i)t. <gd...@gm...> - 2008-07-19 01:15:10
|
Malcolm Box wrote, On 06/30/2008 04:16 PM: > Hi, > > Due to the large amount of spam this list is seeing, I'm considering > closing it to non-members, i.e. only members would be able to post. > > Unless there is a significant objection I'll do so in the near future. > Yes, please. 99% of the mail I get on gmail has [lxr-general] on it. But, granted, it is filtered. |
From: Maximilian W. <ma...@rf...> - 2008-07-01 14:23:29
|
Jan-Benedict Glaw scripsit: > On Mon, 2008-06-30 21:16:26 +0100, Malcolm Box <mal...@gm...> wrote: > > Due to the large amount of spam this list is seeing, I'm considering > > closing it to non-members, i.e. only members would be able to post. > > > > Unless there is a significant objection I'll do so in the near future. > I'm fine with it, but I haven't even really recognized that there's a > lot of spam coming from this list. My two-staged spam filter seems to > catch that quite well :) Go for it. :) Ciao Max -- Follow the white penguin. |
From: Jan-Benedict G. <jb...@lu...> - 2008-06-30 21:45:52
|
On Mon, 2008-06-30 21:16:26 +0100, Malcolm Box <mal...@gm...> wrote: > Due to the large amount of spam this list is seeing, I'm considering > closing it to non-members, i.e. only members would be able to post. > > Unless there is a significant objection I'll do so in the near future. I'm fine with it, but I haven't even really recognized that there's a lot of spam coming from this list. My two-staged spam filter seems to catch that quite well :) MfG, JBG -- Jan-Benedict Glaw jb...@lu... +49-172-7608481 Signature of: 23:53 <@jbglaw> So, ich kletter' jetzt mal ins Bett. the second : 23:57 <@jever2> .oO( kletter ..., hat er noch Gitter vorm Bett, wie früher meine Kinder?) 00:00 <@jbglaw> jever2: *patsch* 00:01 <@jever2> *aua*, wofür, Gedanken sind frei! 00:02 <@jbglaw> Nee, freie Gedanken, die sind seit 1984 doch aus! 00:03 <@jever2> 1984? ich bin erst seit 1985 verheiratet! |
From: Malcolm B. <mal...@gm...> - 2008-06-30 20:16:28
|
Hi, Due to the large amount of spam this list is seeing, I'm considering closing it to non-members, i.e. only members would be able to post. Unless there is a significant objection I'll do so in the near future. Cheers, Malcolm |
From: Jan-Benedict G. <jb...@lu...> - 2008-02-25 08:22:14
|
On Sun, 2008-02-24 20:04:27 -0500, Gene Smith <gd...@gm...> wrote: [...] > I created a user/group "test" and within test account I was unable to > cat files or list files in /home/me/lxr-file (set to 755) unless I > changed /home/me to 705 so permission seemed to be inherited for this > simple case (unless I am missing something here). > > By the way, thanks for your excellent work on LXR. I use it constantly! This is standard Unix behaviour: You can open any file with proper priviliges (knowing its filename beforehand), but to open a directory (needed for reading the filenames within), you need a complete chain of e'x'ecure rights for all directories back to / . MfG, JBG -- Jan-Benedict Glaw jb...@lu... +49-172-7608481 Signature of: What we do for ourselves dies with us. What we do for the second : others and the world remains and is immortal. (Albert Pine) |