Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Pager isn't working #68

Open
scottjacobsen opened this issue Oct 5, 2020 · 8 comments
Open

Pager isn't working #68

scottjacobsen opened this issue Oct 5, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@scottjacobsen
Copy link

When I view a variable in the REPL that doesn't fit on one screen it appears to display the attributes using less, and I have the : prompt at the bottom of the screen. But the less key bindings don't work. I've tried the vim style bindings, emacs style, typed space to page down, and typed q to exit the pager. All the keys are just echoed to the screen but they do not actually do anything. It appears they are simply not passed through to the pager. All I can do is ctl-c to exit jard and start over.

To Reproduce
Steps to reproduce the behavior:

  1. Debug a script with a variable with a lot of attributes
  2. View the variable in the REPL
  3. It appears to display the attributes in the pager, but you can't actually move around in the pager.

Expected behavior
Standard pager movement should work.

Environment (please complete the following information):

  • OS: MacOS 10.15.6 Catalina
  • ITerm2
  • Output when you run tput colors in your terminal => 256
  • Output when you run echo $TERM in your terminal => xterm-256color
  • Output when you run stty
speed 38400 baud;
lflags: echoe echok echoke echoctl pendin
iflags: -ixon iutf8
oflags: -oxtabs
cflags: cs8 -parenb
  • Do you use tmux/screen or similar tty multiplexer? => No
@scottjacobsen scottjacobsen added the bug Something isn't working label Oct 5, 2020
@0x2c7
Copy link
Owner

0x2c7 commented Oct 6, 2020

@scottjacobsen Could you help me a little bit by running this check on your terminal emulator:

ruby -e '100.times { |index| puts "Line #{index}"}' | less -R -X

Does it works as expected, or the behavior is the same? If it's still broken, could you give me the output of less --version in your terminal emulator?

@scottjacobsen
Copy link
Author

scottjacobsen commented Oct 6, 2020 via email

@0x2c7
Copy link
Owner

0x2c7 commented Oct 6, 2020

Ahhh. Glad to hear that. Yes, Ruby Jard will conflict with gems which depend on Pry or Byebug, or gems which override Readline. I discovered some of them. You can check the list in https://rubyjard.org/docs/#conflicts

@caifara
Copy link

caifara commented Oct 12, 2020

Same problem here, awaiting @scottjacobsen before trying again :-)

@scottjacobsen
Copy link
Author

scottjacobsen commented Oct 13, 2020 via email

@caifara
Copy link

caifara commented Oct 13, 2020

@scottjacobsen I'm waiting ;-)

(joking of course)

@0x2c7
Copy link
Owner

0x2c7 commented Oct 13, 2020

@scottjacobsen If your Gemfile is not sensitive, you can post it here. So that I can have a look, and find the troublesome one for you 😄

@frullah
Copy link

frullah commented Oct 22, 2020

@scottjacobsen do you use spring ?

same problem here when use jard with spring, all the keys just echoed to the screen in the pager

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants