# Juno? Bug? Struct prints with wrong value randomly

**URL:** https://discourse.julialang.org/t/juno-bug-struct-prints-with-wrong-value-randomly/19148
**Category:** Juno
**Created:** [December 31, 2018, 3:41pm UTC](https://discourse.julialang.org/t/juno-bug-struct-prints-with-wrong-value-randomly/19148 "2018-12-31T15:41:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)
#### Post date: [December 31, 2018, 3:41pm UTC](https://discourse.julialang.org/t/juno-bug-struct-prints-with-wrong-value-randomly/19148/1 "2018-12-31T15:41:54Z")

</div>

This is weird. Seems to only occur in Juno at the Julia REPL, not when Julia REPL is run at the command line.

```julia
struct A
    a::Float64
    b::Int
    c::Float64
end

julia> a = A(9, 6, 1.5)

```

Then repeatedly print `a`.

Sporadically, the displayed text will change between `A(9.0, 6, 1.5)` and `A(9.0, 6, 1.2)`.

`a.c` always prints the correct value.

What’s going on here?

---

<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: [December 31, 2018, 3:54pm UTC](https://discourse.julialang.org/t/juno-bug-struct-prints-with-wrong-value-randomly/19148/2 "2018-12-31T15:54:15Z")

</div>

This is happening because of  
[https://github.com/JuliaLang/julia/issues/29885](https://github.com/JuliaLang/julia/issues/29885)

As far as I can tell closing the workspace pane circumvents that bug because the race condition isn’t being triggered.
