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

Prism-based parser crashes when building ruby/ruby's doc #1249

Open
st0012 opened this issue Dec 20, 2024 · 0 comments · May be fixed by #1267
Open

Prism-based parser crashes when building ruby/ruby's doc #1249

st0012 opened this issue Dec 20, 2024 · 0 comments · May be fixed by #1267
Assignees
Labels

Comments

@st0012
Copy link
Member

st0012 commented Dec 20, 2024

To reproduce:

// under `build/`
$ export RDOC_USE_PRISM_PARSER=1
$ make html
Generating RDoc HTML files
=========================================================================
RDoc is using the experimental Prism parser to generate the documentation
=========================================================================
Parsing sources...
100% [838/838]  yjit.rb
/Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/class_module.rb:703:in 'RDoc::ClassModule#superclass': stack level too deep (SystemStackError)
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:13:in 'RDoc::NormalClass#ancestors'
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:18:in 'RDoc::NormalClass#ancestors'
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:18:in 'RDoc::NormalClass#ancestors'
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:18:in 'RDoc::NormalClass#ancestors'
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:18:in 'RDoc::NormalClass#ancestors'
        from /Users/hung-wulo/src/github.com/Shopify/ruby/lib/rdoc/code_object/normal_class.rb:18:in 'RDoc::NormalClass#ancestors'
@st0012 st0012 added the bug label Dec 20, 2024
@tompng tompng self-assigned this Jan 2, 2025
@tompng tompng linked a pull request Jan 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants