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
Remove obsoleted Ruby code. #527
Conversation
This isn't related to #422 and just workaround for old Rubies earlier than 1.4 what don't have And the |
RDoc::RubyToken::Symbol was parsed as Symbol class and its content is Integer.
992f9db
to
a55d92e
Compare
Sorry, no relation. I removed issue reference.
wmm... I think just workaround, too. But I think we can delete this line already.
I know !defined?(Symbol) returns false. But RDoc::Store has RDoc::RubyToken::Symbol. I want fix stopdoc or take this workaround, and release 5.1.1. |
I removed whole
It's difficult because we don't use v5 branch and master branch is just for 6.0.0 now. RDoc 5 uses legacy lexical analyser what is forked from IRB and written 20 years ago, so RDoc 6 uses Ripper what is standard library of Ruby. Please check my presentation of RubyKaigi 2017 (by the by, I know that you ware in my audience). It's hard to just understand parsing Ruby code of RDoc partially, and fixing bug is more heavy. You can try and I cheer it, but I guess that the problem of this issue is so complex case. Maybe, I'll fix the problem later. Please wait it. |
Just in case, please check creating the broken document with RDoc of head of master branch, because you know a way to reproduce the bug. And I want to add some tests for it. So I want to reproduce the bug surely. Please tell me the way to reproduce the bug. |
OK. I'll take workaround on docs.ruby-lang.org.
Just parsing Ruby source. But the bug wasn't reproduced always. @classes_hash in RDoc::Store have symbols like below.
Both Normalclass#name returns "Symbol". So sometimes incorrect Symbol.html generated. |
OK, I understand that is probabilistic or outside condition. I think the |
I want to remove obsoleted Ruby code from RDoc inside CRuby. :) |
OK, thank you. I understand. |
I checked all things about this problem. The #529 will be picked to Ruby core trunk soon by @hsbt. But, Ruby 2.2, 2.3 and 2.4 will not be backported if anyone don't do nothing. By the way, 2.2 is under security maintenance, 2.3 and 2.4 are under normal maintenance. So I think you should send issue(s) to 2.3 and 2.4 at bugs.ruby-lang.org with a patch of this Pull Request, because If you send the issue(s), please tell me it. You can use here for it. After that, I'll help you about RDoc internal matters there. |
@aycabta Thanks a lot!! OK. I'll create issue at bugs.ruby-lang.org later. |
@aycabta I created https://bugs.ruby-lang.org/issues/13990. |
RDoc::RubyToken::Symbol was parsed as Symbol class and its content is Integer.
To check this PR, see @classes_hash in RDoc::Store. It has only one
Symbol
class.@classes_hash at rdoc 5.1.0 has two Symbol class like below.