[Lxr-dev] [ lxr-Bugs-3330950 ] Generic.pm does unnecessary initialisation
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2011-12-21 20:09:44
|
Bugs item #3330950, was opened at 2011-06-25 06:31 Message generated for change (Settings changed) made by ajlittoz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3330950&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: Lang support Group: current cvs Status: Closed >Resolution: Fixed Priority: 3 Private: No Submitted By: Andre-Littoz (ajlittoz) Assigned to: Andre-Littoz (ajlittoz) Summary: Generic.pm does unnecessary initialisation Initial Comment: Initialisation of generic parser is don in sub read_config. Since it is called only once, it is a good place to proceed with various tests, such as tools version number. This is done with the Perl backtick construct, executing a shell command as an independent process. Some security rules may forbid such a parallel execution from a web server (e.g. on SourceForge). Thus, initialisation aborts and LXR can't display files. To circumvent the problem, initialisation should detect whether it is call from shell contect (i.e. from genxref) or from web context. Since there is no need of ctags in web context, this verification should not be attempted. ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2011-12-21 09:44 Message: This has now been fixed in CVS. If you can install the new version and check that it solves your problem, then it would be very useful. Thanks for reporting this defect and helping to make LXR better. ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2011-12-21 09:43 Message: All the tests on auxiliary tools have been moved to genxref which is easier since genxref is executed in shell context. Moreover, LXR data is always initialised by genxref which is run only once in a while, at least not every time you need LXR. Change in CVS for next release (0.10). ---------------------------------------------------------------------- Comment By: Andre-Littoz (ajlittoz) Date: 2011-12-21 09:43 Message: This has now been fixed in CVS. If you can install the new version and check that it solves your problem, then it would be very useful. Thanks for reporting this defect and helping to make LXR better. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3330950&group_id=27350 |