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

up arrow not retrieving last input in repl #228

Closed
jazzbox35 opened this issue Dec 24, 2024 · 2 comments
Closed

up arrow not retrieving last input in repl #228

jazzbox35 opened this issue Dec 24, 2024 · 2 comments

Comments

@jazzbox35
Copy link
Collaborator

If I enter the wrong number of parenthesis in mettalog I do get an error message, however I have to type the entire input back in because the up arrow doesn't retrieve the bad input for easy correction.

@stassa
Copy link
Collaborator

stassa commented Dec 30, 2024

I can't reproduce this, e.g.

% Starting on WSL with: swipl $PWD/prolog/metta_lang/metta_interp.pl --repl

metta+>!(print abcd))
abcd
[abcd]

% Invoking last expression with up-arrow
metta+>!(print abcd)

metta+>!((print abcd
| ))
abcd
[(abcd)]

% Invoking last expression with up-arrow
metta+>!((print abcd))

Can you copy/paste an example session where this happens?

@jazzbox35
Copy link
Collaborator Author

I can't recreate this either now. In fact if I input

!(+ 1 2)))))))))))))))

It ignores the superfluous parens. I cannot recreate the problem either so I assume program modified or my installation was the problem. I will close for now and reopen if I see it again.

Thanks

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