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

Pry always calls 'clear' method #1610

Closed
ceciliassis opened this issue May 22, 2017 · 3 comments · Fixed by #2291
Closed

Pry always calls 'clear' method #1610

ceciliassis opened this issue May 22, 2017 · 3 comments · Fixed by #2291

Comments

@ceciliassis
Copy link

ceciliassis commented May 22, 2017

Confirm in:

  • Manjaro 17.0.1 Gellivara (XFCE)
  • Ubuntu 16.10 (GNOME)

When a method named clear is defined inside pry, pry calls it every single time a new command is typed and confirmed.

It doesn't matter what the method does, pry calls it.

For testing, I made a method putting some message, the message was displayed 3times.

screenshot_2017-05-22_18-21-40

@0x1eef
Copy link
Contributor

0x1eef commented May 24, 2017

i think it happens because of coderay, on this line: https://github.com/rubychan/coderay/blob/master/lib/coderay/scanners/scanner.rb#L266

@docljn
Copy link

docljn commented Aug 24, 2019

Hello the team, @rg-3 and @ceciliassis

Given this appears to be part of a separate gem, should this still be logged as an issue with pry?

Thank you

@0x1eef
Copy link
Contributor

0x1eef commented Aug 25, 2019

I'm not sure. I'm not involved in this project these days.

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 a pull request may close this issue.

3 participants