Why does a simple for loop print from the REPL but not from the Atom editor?

If I do the below in the Atom editor, the cursor in the repl just moves left then right and nothing prints

for x in 1:5
print(x)
end

If I do the same thing in the repl, as below, it prints.
What’s going on?

julia> for x in 1:5 print(x) end
12345

Okay, I made the editor print to the REPL by ending with readline(), but it only printed 2 through 5 and dropped the 1 so I’m still confused.

1 Like

That’s a bug in Juno. First line printed is sometimes not displayed.

1 Like

Thanks. For once I’m not wrong :smiley: