[Lxr-dev] [ lxr-Bugs-3581487 ] genxref crash while reading configuration
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2012-10-29 14:02:02
|
Bugs item #3581487, was opened at 2012-10-28 19:21 Message generated for change (Comment added) made by oliwer_ You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3581487&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: genxref Group: v1.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Olivier Duclos (oliwer_) Assigned to: Nobody/Anonymous (nobody) Summary: genxref crash while reading configuration Initial Comment: When launching genxref with the command './genxref --url=http://lxr.domain.com --allversions' I get the following error: No matching configuration at ./genxref line 312, <FILETYPE> line 1. I tried to track down the error and found this a few lines above : if ($option{'url'}) { # Single 'url' @config = (1); # Fake list to prevent looping } This may prevent looping but the rest of the script needed the data in @config. I tried commenting this passage, but then the script exits without any error and without having generating the database files! This was on Debian Squeeze with Perl 5.10.1. ---------------------------------------------------------------------- >Comment By: Olivier Duclos (oliwer_) Date: 2012-10-29 07:02 Message: Thanks for your quick reply. I should have started from the beginning. My lxr.conf contains this: 'host_names' => [ 'lxr.sleepycat.fr' ] 'virtroot' => '' When I launch ./genxref --url=//lxr.sleepycat.fr --allversions I get this: Can't find config for http://lxr.sleepycat.fr/: ... I tried adding 'http://' in the hostname and putting '/' in virtroot but it doesn't change anything. Then I added this line to lxr.conf : , 'baseurl' => 'http://lxr.sleepycat.fr' and it got me to the problem mentioned above. I'm stuck! ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2012-10-29 02:51 Message: Hi, Your analysis is wrong: inside the loop, access to data in @config (aka. through variable $treedescr) is protected by another "if ($option("url"))" to discriminate between single and multiple URL indexing. It should work as is. Check that your --url argument is correct. As I read it, it only contains the target hostname, i.e. without 'virtroot'. The genxref line should read something like: ./genxref --url=http://lxr.domain.com/virtroot --allversions unless, of course, your 'virtroot' is only '/', meaning the host only contains a single LXR tree (without any other page). If you forgot nothing, send your lxr.conf. Regards, ajl ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3581487&group_id=27350 |