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

Fix random NameError of RipperStateLex #631

Merged
merged 1 commit into from Jun 23, 2018

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Jun 23, 2018

Because RDoc::RipperStatelex is loaded by RDoc::Parser, some tests that need RDoc::RipperStateLex fail when RDoc::Parser isn't autoloaded. That whether RDoc::RipperStateLex is loaded or not depends on RDoc::Parser is autoloaded. Therefore NameError of RDoc::RipperStateLex is occurred at random.

This patch fixes it with that RDoc::RipperStateLex is moved to RDoc::Parser::RipperStateLex.

Because RDoc::RipperStatelex is loaded by RDoc::Parser, some tests that
need RDoc::RipperStateLex fail when RDoc::Parser isn't autoloaded. That
whether RDoc::RipperStateLex is loaded or not depends on RDoc::Parser is
autoloaded. Therefore NameError of RDoc::RipperStateLex is occurred at
random.

This patch fixes it with that RDoc::RipperStateLex is moved to
RDoc::Parser::RipperStateLex.
@aycabta aycabta merged commit 9c93b31 into ruby:master Jun 23, 2018
@aycabta aycabta deleted the fix-random_nameerror-of-ripperstatelex branch June 23, 2018 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant