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 'calling clear method' when defined in pry context. #2291

Merged
merged 2 commits into from Oct 28, 2023

Conversation

andrehjr
Copy link
Member

When scanning code for syntax highlighting, a method 'clear' was called if defined on self.

I narrowed down the issue to being related to this part https://github.com/rubychan/coderay/blob/f71b25d3112ac7fcc43ca48055030319ecc7a840/lib/coderay/encoders/encoder.rb#L72

I changed the way we call CodeRay instead. As a part of this change, I also removed pre-coderay 1.0 code.

Fixes #1610

@andrehjr andrehjr merged commit d5a1f1c into pry:master Oct 28, 2023
19 checks passed
@andrehjr andrehjr deleted the fix-highlight-calling-clear-method branch October 28, 2023 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pry always calls 'clear' method
1 participant