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

IRB issue on ARM64: left and right arrows cover up text #7841

Open
Tracked by #7471
mohamedhafez opened this issue Jun 21, 2023 · 1 comment
Open
Tracked by #7471

IRB issue on ARM64: left and right arrows cover up text #7841

mohamedhafez opened this issue Jun 21, 2023 · 1 comment

Comments

@mohamedhafez
Copy link
Contributor

If I run irb in the arm64 environment described below, lets say I type in a line of string like below:
Screenshot 2023-06-21 at 1 10 53 PM

, but then i decide I want to change Hello to Hi or something, press the back button several times, it ends up looking like this:
Screenshot 2023-06-21 at 1 11 38 PM

Pressing the forward button prints a different character but otherwise behaves the same:
Screenshot 2023-06-21 at 1 13 25 PM


Much less important, but still would be nice to fix:

Lets say we type the line, then type ctrl-a to jump to the beginning of the line, then we get this:
Screenshot 2023-06-21 at 1 19 40 PM

And if we then type ctrl-e to go to the end of the line we get this:
Screenshot 2023-06-21 at 1 20 36 PM

If we repeated the above but used fn-shift-left and then fn-shift-right to go to the beginning of the line then the end, then it looks like this:
Screenshot 2023-06-21 at 1 22 10 PM

Lets say we use alt-left to skip over words to the left, we get:
Screenshot 2023-06-21 at 1 23 41 PM

Then lets use alt-right to go forward a couple words from that position:
Screenshot 2023-06-21 at 1 26 18 PM


It's not actually overwriting any characters in any of these cases, if I press enter it still executes the command normally, but its just super distracting and makes it hard to edit lines you've written.

On the equivalent environment but using an x86_64 instance from AWS, it behaves perfectly normally.


Environment:

  • JRuby version: jruby 9.4.3.0 (3.1.4) 2023-06-07 3086960792 OpenJDK 64-Bit Server VM 17.0.7+7-LTS on 17.0.7+7-LTS +jit [aarch64-linux]

*JRuby installed via rvm 1.29.12 (latest version)

  • java --version:
openjdk 17.0.7 2023-04-18 LTS
OpenJDK Runtime Environment Corretto-17.0.7.7.1 (build 17.0.7+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.7.7.1 (build 17.0.7+7-LTS, mixed mode, sharing)
  • Operating system and platform: Linux ip-172-30-1-20 5.19.0-1027-aws #28~22.04.1-Ubuntu SMP Wed May 31 18:33:02 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
@headius
Copy link
Member

headius commented Aug 30, 2023

Sorry there's been no activity on this, but it's a very high priority for me to get back to fixing IRB (and FFI) on aarch64. I run an M1 mac for most of my daily activity and the lack of IRB is very frustrating (it doesn't work at all currently).

Hopefully in the next couple of weeks I can return to this. Any additional information you can provide to dig under the covers would be very helpful.

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

2 participants