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 history is broken #194

Open
MoskitoHero opened this issue Apr 23, 2021 · 1 comment
Open

Pry history is broken #194

MoskitoHero opened this issue Apr 23, 2021 · 1 comment

Comments

@MoskitoHero
Copy link

Hello, I am having problems debugging with binding.pry. Whenever I want to go back in history using the up key, it breaks with this error:

(search-failed "\\(^>> *\\)\\|\\(^(rdb:1) *\\)\\|\\(^(byebug) *\\)\\|\\(^\\(i...")
  re-search-backward("\\(^>> *\\)\\|\\(^(rdb:1) *\\)\\|\\(^(byebug) *\\)\\|\\(^\\(i...")
  inf-ruby-get-old-input()
  #f(compiled-function (regexp n &optional restore) "Search backwards through input history for match for REGEXP.\n(Previous history elements are earlier commands.)\nWith prefix argument N, search for Nth previous match.\nIf N is negative, find the next or Nth next match." (interactive (comint-regexp-arg "Previous input matching (regexp): ")) #<bytecode 0x3cd3e3064965c2f>)("." 1 nil)
  ad-Advice-comint-previous-matching-input(#f(compiled-function (regexp n &optional restore) "Search backwards through input history for match for REGEXP.\n(Previous history elements are earlier commands.)\nWith prefix argument N, search for Nth previous match.\nIf N is negative, find the next or Nth next match." (interactive (comint-regexp-arg "Previous input matching (regexp): ")) #<bytecode 0x3cd3e3064965c2f>) "." 1)
  apply(ad-Advice-comint-previous-matching-input #f(compiled-function (regexp n &optional restore) "Search backwards through input history for match for REGEXP.\n(Previous history elements are earlier commands.)\nWith prefix argument N, search for Nth previous match.\nIf N is negative, find the next or Nth next match." (interactive (comint-regexp-arg "Previous input matching (regexp): ")) #<bytecode 0x3cd3e3064965c2f>) ("." 1))
  comint-previous-matching-input("." 1)
  comint-previous-input(1)
  funcall-interactively(comint-previous-input 1)
  call-interactively(comint-previous-input nil nil)
  command-execute(comint-previous-input)

My pry prompt looks like this:

[4] [my_project][test] pry(#<RSpec::ExampleGroups::B2cLocation::GoogleMapsValidation>)> 

I am using doom emacs with emacs 28.50, ruby 2.7.2 and the latest pry gem - 0.13.1

@dgutov
Copy link
Collaborator

dgutov commented Apr 23, 2021

Check this out: nonsequitur/inf-ruby#72

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

3 participants
@dgutov @MoskitoHero and others