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

jlox REPL should not automatically expand !expr on ENTER #23

Open
zxul767 opened this issue Nov 20, 2022 · 0 comments
Open

jlox REPL should not automatically expand !expr on ENTER #23

zxul767 opened this issue Nov 20, 2022 · 0 comments
Labels
bug Something isn't working p2

Comments

@zxul767
Copy link
Owner

zxul767 commented Nov 20, 2022

i believe there's some misconfiguration in the REPL's "readline" library that causes the following odd behavior:

>>> "hi" < "hello"
Runtime Error: Operands must be numbers
[line 1]
>>> !"hi"
>>> "hi" < "hello"
Runtime Error: Operands must be numbers
[line 1]

notice how upon pressing ENTER the !"hi" expression gets automatically expanded to the last command/expression instead of being evaluated normally.

the same issue is present when pressing TAB, although in this case the behavior is just fine, as TAB is often used for autocompletion commands in many apps.

@zxul767 zxul767 added the bug Something isn't working label Nov 20, 2022
@zxul767 zxul767 changed the title jlox REPL should not automatically expand !expression jlox REPL should not automatically expand !expr on ENTER Nov 20, 2022
@zxul767 zxul767 added the p2 label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2
Projects
None yet
Development

No branches or pull requests

1 participant