History not available

Aperta
#1,054 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rails, ruby
Ambito
cli, tooling

Direzione di ricerca

Start by reproducing the session in a Rails console with debug 1.9.1: run a command, check history, restart, and press the up arrow. Compare this behavior with pry-byebug and trace the debug console's history handling; done means commands persist across console restarts and the history command reports them.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

  • ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin21]
  • gem list debug: debug (1.9.1)
  • gem list rails: rails (7.1.2)
  • gem list irb: irb (default: 1.11.0)

Describe the bug
Command history is forgotten after restarting rails console

To Reproduce

  • open rails console
  • issue anything (eg: 1+1)
  • issue history, you must see the two commands
  • exit rails console
  • open rails console again
  • press up arrow (it should bring back last executed command), but none is returned
  • issue history, history is empty

ps: it works as expected when I have pry-byebug (3.10.1) instead of debug (1.9.1) on the application Gemfile

Expected behavior
When pressing up arrow, I should see the last executed command, as it happens with pry-byebug.

Lingua principale
Ruby
Stelle
1.3k
Fork
146
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ruby/debug

Tutte le issue di ruby/debug

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.