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

**URL:** <https://discourse.julialang.org/t/why-does-a-simple-for-loop-print-from-the-repl-but-not-from-the-atom-editor/65903>\
**Category:** New to Julia\
**Created:** [August 5, 2021, 6:48pm UTC](https://discourse.julialang.org/t/why-does-a-simple-for-loop-print-from-the-repl-but-not-from-the-atom-editor/65903 "2021-08-05T18:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybervigilante](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cybervigilante/32/26687_2.png) [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Post date:** [August 5, 2021, 6:48pm UTC](https://discourse.julialang.org/t/why-does-a-simple-for-loop-print-from-the-repl-but-not-from-the-atom-editor/65903/1 "2021-08-05T18:48:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 5, 2021, 7:46pm UTC](https://discourse.julialang.org/t/why-does-a-simple-for-loop-print-from-the-repl-but-not-from-the-atom-editor/65903/2 "2021-08-05T19:46:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cybervigilante](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cybervigilante/32/26687_2.png) [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Post date:** [August 6, 2021, 12:16am UTC](https://discourse.julialang.org/t/why-does-a-simple-for-loop-print-from-the-repl-but-not-from-the-atom-editor/65903/3 "2021-08-06T00:16:34Z")

</div>

Thanks. For once I’m not wrong 😃
