Skip Menu |

This queue is for tickets about the Parse-RecDescent CPAN distribution.

Report information
The Basics
Id: 110404
Status: resolved
Worked: 2 min
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: POPEL [...] cpan.org
Cc: VARISD [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: VARISD [...] cpan.org
Subject: Parse::RecDescent::_Runtime and CPAN
I've used precompiled runtime RecDescent in a module released on CPAN (https://metacpan.org/release/POPEL/Treex-Core-2.20151216). Now, CPAN indexer complains that module : Parse::RecDescent::_Runtime version: 2.20151210 in file: Treex-Core-2.20151210/lib/Treex/Core/ScenarioParser.pm status : Not indexed because permission missing. Current registered primary maintainer is JTBRAUN. Hint: you can always find the legitimate maintainer(s) on PAUSE under "View Permissions". I'd suggest to use the newline trick *in the generated code* to exclude these packages from indexing: package # this should not be indexed by CPAN Parse::RecDescent::_Runtime and similarly for the other packages with this prefix. Alternatively, add instructions to the documentation (https://metacpan.org/pod/Parse::RecDescent#Precompiled-runtimes) that users should use a different trick, e.g. [MetaNoIndex], https://github.com/ufal/treex/blob/4e9693244244a6eb9e4eba5919ee7684463d9961/packaging/Treex-Core/dist.ini.template#L63-L81 .
Thanks for the report! I'm happy to add this, I'll try to find some time this weekend to do so.
Interesting... Your parser: http://cpansearch.perl.org/src/VARISD/Treex-Core-2.20151210/lib/Treex/Core/ScenarioParser.pm Was generated with the class name: package Treex::Core::ScenarioParser; Recent versions of Parse::RecDescent (1.967_010 and above) should have generated the runtime as: Treex::Core::ScenarioParser::_Runtime Not Parse::RecDescent::_Runtime Can you confirm what version of Parse::RecDescent you used to generate your precompiled parser? Would it be possible for you to upgrade? If you have multiple parsers, you can share the runtime between them by providign the -runtime_class option when you create the parser. Create one of them standalone (which will include the runtime), and the rest as not standalone, but with the same -runtime_class option. I'll probably still do this, as the runtime isn't something that should be used/exposed or indexed.
This should be fixed in v1.967014, uploaded to PAUSE just a moment ago, and available at https://github.com/jtbraun/Parse-RecDescent/releases/tag/v1.967014. Thank you for your bug report! Jeremy On Thu Dec 17 12:02:32 2015, POPEL wrote: Show quoted text
> I've used precompiled runtime RecDescent in a module released on CPAN > (https://metacpan.org/release/POPEL/Treex-Core-2.20151216). > Now, CPAN indexer complains that > > module : Parse::RecDescent::_Runtime > version: 2.20151210 > in file: Treex-Core-2.20151210/lib/Treex/Core/ScenarioParser.pm > status : Not indexed because permission missing. Current registered > primary maintainer is JTBRAUN. Hint: you can always find > the legitimate maintainer(s) on PAUSE under "View > Permissions". > > I'd suggest to use the newline trick *in the generated code* to > exclude these packages from indexing: > > package # this should not be indexed by CPAN > Parse::RecDescent::_Runtime > > and similarly for the other packages with this prefix. > > Alternatively, add instructions to the documentation > (https://metacpan.org/pod/Parse::RecDescent#Precompiled-runtimes) that > users should use a different trick, e.g. [MetaNoIndex], > https://github.com/ufal/treex/blob/4e9693244244a6eb9e4eba5919ee7684463d9961/packaging/Treex- > Core/dist.ini.template#L63-L81 .
Changed status to resolved.