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 messes up IRB Autocompletion + History #2315

Open
fmichaut-diff opened this issue Jun 14, 2024 · 0 comments
Open

Pry messes up IRB Autocompletion + History #2315

fmichaut-diff opened this issue Jun 14, 2024 · 0 comments

Comments

@fmichaut-diff
Copy link

fmichaut-diff commented Jun 14, 2024

Hi there, I encounter this issue a lot.

Rails app, I have a dev console running that I use to test pieces of my code. Usually when something doesn't behave as expected, I need to debug the methods/services from the inside, so I add a binding.pry where I need to debug, do a reload! in my console and re-execute the function/service i'm debugging.

What happens is pry open as expected, I check what is the content of my variables, do a few next... basic pry usage.
When i'm done, I use exit to return to my rails console. The console history now has the next commands in History, and the autocomplete is replaced by pry's.
Eg: After fixing my code, and want to debug it a second time, I try to type reload! again, but since I'm lazy (i'm a programer after all) I like to type it as rel-TAB, which should resolve to reload! but doesn't anymore. It resolves to reload-code or reload-method now (pry methods) which don't exist on IRB so use auto-completion from this point on will always result in an error).

Seems related to : #1474.

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

No branches or pull requests

1 participant