Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p6doc does not work on Mac OS X dmg #6158

Closed
p6rt opened this issue Mar 20, 2017 · 5 comments
Closed

p6doc does not work on Mac OS X dmg #6158

p6rt opened this issue Mar 20, 2017 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Mar 20, 2017

Migrated from rt.perl.org#131025 (status was 'resolved')

Searchable as RT131025$

@p6rt
Copy link
Author

p6rt commented Mar 20, 2017

From telebody@gmail.com

Hello,

I installed the Rakudo Star Mac OS X 2017.01 DMG installer on a new MacBook Pro and had the following problem​:
The p6doc command (run in iTerm2) cannot find the documentation.

I discussed with Coke and Zoffix on IRC​: https://irclog.perlgeek.de/perl6/2017-02-27#i_14173490 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173490>

Since I did not see it on the bug tracker I would like to make sure you know about it so it can be fixed for the next Rakudo Star release, thanks!

What does work is if you do p6doc -l then you can view most of the docs listed (except zef). However it does not work for any of the other examples displayed when you run p6doc without arguments.

Coke said​: last time I mentioned an issue with this, someone said it was a known issue
Zoffix said​: I opend an Issue on the topic​: Raku/doc#1224 <https://github.com/perl6/doc/issues/1224>
(p6doc mentions `Type​::*` in instructions / LTA errors on unknown types #​1224)

15​:48 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173562>  Zoffix `p6doc Str` works for me. Did you run `pd6doc-index build`?
15​:48 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173563>  mattr__ yes
15​:48 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173564>  Zoffix faq works too for me. This is on Bodhi Linux
15​:48 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173565>  no idea why it don't work for oyu
15​:49 <https://irclog.perlgeek.de/perl6/2017-02-27#i_14173567>  mattr__ I think as Coke (thanks!) notes there is some problem with the latest max os x dmg installer

To reproduce the error​:

The kind of errors I saw​:

p6doc Str
Str is a builtin type, not an external module
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
  in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 93
  in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 226

p6doc Str.split
Str is a builtin type, not an external module
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
  in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 128
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 92
  in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 226

p6doc -f Type​::Array.push
Could not find Type​::Array at line 0 in​:
  /Users/mattr/.perl6
  /Applications/Rakudo/share/perl6/site
  /Applications/Rakudo/share/perl6/vendor
  /Applications/Rakudo/share/perl6
  CompUnit​::Repository​::AbsolutePath<140451008105744>
  CompUnit​::Repository​::NQP<140451007696344>
  CompUnit​::Repository​::Perl5<140451007696384>
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
  in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 128
  in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 226

p6doc faq
Could not find faq at line 0 in​:
  /Users/mattr/.perl6
  /Applications/Rakudo/share/perl6/site
  /Applications/Rakudo/share/perl6/vendor
  /Applications/Rakudo/share/perl6
  CompUnit​::Repository​::AbsolutePath<140294375860960>
  CompUnit​::Repository​::NQP<140294375451608>
  CompUnit​::Repository​::Perl5<140294375451648>
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
  in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 93
  in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 226

p6doc -f hyper
No documentation found for a routine named ‘hyper’

p6doc -f slurp
No documentation found for a routine named 'slurp'

p6doc zef
Use of Nil in string context
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
Use of Nil in string context
  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
Can not run directory /Applications/Rakudo/share/perl6/site/sources.

  in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 219
  in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
  in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 93
  in block <unit> at /Applications/Rakud

Best regards,

Matt Rosin

@p6rt
Copy link
Author

p6rt commented Jun 20, 2017

From mattr@lawrence-corp.net

Confirmed bug still appears in Rakudo 2017.04 Mac OS X .dmg install.
None of the examples given in the p6doc command help actually work.

Given that a dmg install is the first thing a newbie would try, this is important to growing the Perl 6 community.

Based on a clean install on a new 2016 MacBook Pro.
This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Jun 20, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 12, 2017

From @stmuk

This problem was cross-platform and not just OS X and was fixed by

Raku/doc@7d9e87c

@p6rt p6rt closed this as completed Jul 12, 2017
@p6rt
Copy link
Author

p6rt commented Jul 12, 2017

@stmuk - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant