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

empty else case not handled. #284

Open
jomaway opened this issue May 7, 2024 · 2 comments
Open

empty else case not handled. #284

jomaway opened this issue May 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jomaway
Copy link

jomaway commented May 7, 2024

if i end in and if case with an empty else case i have a break in the diagram. See screenshot

Would expect to get a line from the gültig to the small diamond.

partition Noten_einlesen {
  start
      :read input string from user;
      :split string on ',';
      while (iter liste) is (next)
        :note in int umwandeln;
        :note überprüfen;
        if (gültig) then
            :print error;
            end
        else (no)
        endif
      endwhile (done)
      :return liste;

  end

}

Bildschirmfoto vom 2024-05-07 17-33-12

@hikerpig hikerpig added the bug Something isn't working label May 10, 2024
@hikerpig
Copy link
Owner

hikerpig commented May 10, 2024

I'm not sure if it's a web app cache thing, you may try cmd+shift+R - on OSX , I'm sure windows browser has something similar - to force refresh the page.
I do remember that I fixed this some months ago, raised in a similar issue.

Here's my screenshot on the live-editor , the else line does show.
image

But hey! When I paste all your example code into the live-editor, an even more bizare layout bug strikes me , I need to fix this, thank you for the example.
image

@jomaway
Copy link
Author

jomaway commented May 20, 2024

I used the online live editor. And now i get the same weird connections as in your screenshot

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

2 participants