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

Exception in tutorial causes improper control flow #104

Open
edwfeng opened this issue Sep 23, 2020 · 1 comment
Open

Exception in tutorial causes improper control flow #104

edwfeng opened this issue Sep 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@edwfeng
Copy link
Contributor

edwfeng commented Sep 23, 2020

Describe the bug
The tutorial relies on the user inputting the keyword next for moving between different sections. However, when an exception is raised, the next keyword needs to be input twice to continue.

To Reproduce

  • What steps should be executed to reproduce the bug?
    • Follow the tutorial to the end of the "substitute all" section
    • Run eval b x=1, which succeeds, causing the tutorial to print "Continue testing this feature, or type 'next' to continue."
    • Run eval b a=1, which throws a java.util.NoSuchElementException
    • Type the next keyword—this simply prints out a >>> prompt rather than continuing to the next section
  • Which interface are you using? commandui
  • What constants and functions are defined in the current session? N/A
  • What settings are enabled in the config, and are any changed manually during the session? N/A

Expected behavior
The tutorial only requires one next to continue to the next section.

Screenshots
image
The definition of b, for reference

image
Expected behavior, only requires one next

image
Actually requires two nexts

Version
master, commit 28957a4

Additional context
This bug is a possible indication that other input-related errors may exist.

@michaelk522 michaelk522 added the bug Something isn't working label Sep 30, 2020
@eiis1000
Copy link
Member

Thanks for the issue, we'll get to it eventually :)

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

No branches or pull requests

3 participants