# Juno REPL behaves differently than terminal REPL

**URL:** <https://discourse.julialang.org/t/juno-repl-behaves-differently-than-terminal-repl/29469>\
**Category:** Juno\
**Created:** [October 3, 2019, 11:53pm UTC](https://discourse.julialang.org/t/juno-repl-behaves-differently-than-terminal-repl/29469 "2019-10-03T23:53:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpo/32/3335_2.png) [@dpo](https://discourse.julialang.org/u/dpo)\
**Post date:** [October 3, 2019, 11:53pm UTC](https://discourse.julialang.org/t/juno-repl-behaves-differently-than-terminal-repl/29469/1 "2019-10-03T23:53:25Z")

</div>

Julia 1.2, Atom 1.40.1, latest versions of Atom.jl and Juno.jl, macOS.

At a fresh Juno Julia REPL:

```julia
julia> d = Dict(1 => "a", 3 => "b", 0 => "c")
Dict{Int64,String} with 3 entries:
  0 => "c"
  3 => "b"
  1 => "a"

julia> sort(d)
OrderedCollections.OrderedDict{Int64,String} with 3 entries:
  0 => "c"
  1 => "a"
  3 => "b"

```

Who said to import `OrderedCollections`???

Terminal REPL, same version of everything:

```julia
julia> d = Dict(1 => "a", 3 => "b", 0 => "c")
Dict{Int64,String} with 3 entries:
  0 => "c"
  3 => "b"
  1 => "a"

julia> sort(d)
ERROR: MethodError: no method matching sort(::Dict{Int64,String})

```

We were able to reproduce this on Linux and Windows, so it appears like a Juno side effect. How do we make the Juno REPL behave like the terminal REPL?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 4, 2019, 12:00am UTC](https://discourse.julialang.org/t/juno-repl-behaves-differently-than-terminal-repl/29469/2 "2019-10-04T00:00:33Z")

</div>

> [@dpo](#):
>
> Who said to import `OrderedCollections` ???

Atom: [https://github.com/JunoLab/Atom.jl/blob/fa3ed718d21afa269ccfeb2cf72d2a88f65334fc/Project.toml#L24](https://github.com/JunoLab/Atom.jl/blob/fa3ed718d21afa269ccfeb2cf72d2a88f65334fc/Project.toml#L24)

> [@dpo](#):
>
> How do we make the Juno REPL behave like the terminal REPL?

Tell `OrderedCollections` to not commit type piracy: [https://github.com/JuliaCollections/OrderedCollections.jl/blob/342792ccb4d14bf7c49b0812b0375981a1448b9f/src/dict\_sorting.jl#L21](https://github.com/JuliaCollections/OrderedCollections.jl/blob/342792ccb4d14bf7c49b0812b0375981a1448b9f/src/dict_sorting.jl#L21)

---

<div class="post-metadata">

**Author:** ![dpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpo/32/3335_2.png) [@dpo](https://discourse.julialang.org/u/dpo)\
**Post date:** [October 4, 2019, 2:15am UTC](https://discourse.julialang.org/t/juno-repl-behaves-differently-than-terminal-repl/29469/3 "2019-10-04T02:15:29Z")

</div>

> > Who said to import `OrderedCollections` ???

> Atom: [https://github.com/JunoLab/Atom.jl/blob/fa3ed718d21afa269ccfeb2cf72d2a88f65334fc/Project.toml#L24](https://github.com/JunoLab/Atom.jl/blob/fa3ed718d21afa269ccfeb2cf72d2a88f65334fc/Project.toml#L24)

Well, right, but when module A depends on module B, `using A` doesn’t automatically reexport B.

> Tell `OrderedCollections` to not commit type piracy: [https://github.com/JuliaCollections/OrderedCollections.jl/blob/342792ccb4d14bf7c49b0812b0375981a1448b9f/src/dict\_sorting.jl#L21](https://github.com/JuliaCollections/OrderedCollections.jl/blob/342792ccb4d14bf7c49b0812b0375981a1448b9f/src/dict_sorting.jl#L21)

Ok, that’s the culprit. Thank you. I opened an issue.
