#306 pdldoc can't handle SPP mount location change

feature_request
closed-works-for-me
nobody
core (120)
5
2013-03-03
2012-07-03
No

It appears that the current pdldoc implementation uses absolute paths
to locate the documentation. This breaks on Strawberry Perl Portable
when the location of the portable "install" changes, e.g.,

pdl> ?hold3d
Module PDL::Graphics::TriD
Runtime error: can't find file 'F:/chm/perl/strawberry/v516/perl/site/lib/PDL/Graphics/TriD.pm' at C:/chm/strawberry/v516/perl/site/lib/PDL/Doc.pm line 785.
PDL::Doc::funcdocs_fromfile('hold3d', 'F:/chm/perl/strawberry/v516/perl/site/lib/PDL/Graphics/TriD.pm', 'IO::File=GLOB(0x2aaf02c)') called at C:/chm/strawberry/v516/perl/site/lib/PDL/Doc.pm line 776
PDL::Doc::funcdocs('PDL::Doc=HASH(0x279960c)', 'hold3d', 'IO::File=GLOB(0x2aaf02c)') called at C:/chm/strawberry/v516/perl/site/lib/PDL/Doc/Perldl.pm line 277
PDL::Doc::Perldl::finddoc('hold3d') called at C:/chm/strawberry/v516/perl/site/lib/PDL/Doc/Perldl.pm line 619
PDL::Doc::Perldl::help('hold3d') called at (eval 447) line 5

This could be fixed by adding support for relative paths
in the database or in the search based on the database.

Discussion

  • Chris Marshall

    Chris Marshall - 2012-11-08

    A work around is to run scantree.pl to regenerate the
    links in the docs database to the current location of
    SPP. Ideally, the docs database searching could be
    made more position independent, perhaps by using
    a locations relative to the PDL install tree.

     
  • Chris Marshall

    Chris Marshall - 2013-03-03

    Closing this ticket as I can no longer reproduce the problem with current PDL and pdldoc.

     
  • Chris Marshall

    Chris Marshall - 2013-03-03
    • status: open --> closed-works-for-me
     

Log in to post a comment.