# MutableBinaryHeap suddenly stopped working?

**URL:** <https://discourse.julialang.org/t/mutablebinaryheap-suddenly-stopped-working/88197>\
**Category:** General Usage\
**Tags:** question, package, error\
**Created:** [October 4, 2022, 12:33am UTC](https://discourse.julialang.org/t/mutablebinaryheap-suddenly-stopped-working/88197 "2022-10-04T00:33:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Quiaro\_San](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alejandro_quiaro_san/32/35437_2.png) [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Post date:** [October 4, 2022, 12:33am UTC](https://discourse.julialang.org/t/mutablebinaryheap-suddenly-stopped-working/88197/1 "2022-10-04T00:33:29Z")

</div>

Hello, I have a function that is using a MutableBinaryHeap. The code was running fine, and suddenly it stopped working. It is giving the following error:  
`ERROR: MethodError: no method matching MutableBinaryHeap(::typeof(last), ::Vector{Tuple{Int64, Float64}}) Stacktrace: [1] inheap(n::Float64, sr::Int64) @ Main ~/Desktop/ShortestPath/3.Self_adaptative_Mesh/2_heap_DJK_aq_original.jl:49 [2] dijkstra_heap(adjque::Matrix{Float64}, sr::Int64) @ Main ~/Desktop/ShortestPath/3.Self_adaptative_Mesh/2_heap_DJK_aq_original.jl:100 [3] macro expansion @ ~/Desktop/ShortestPath/3.Self_adaptative_Mesh/6_SP_self_densifying.jl:33 [inlined] [4] top-level scope @ ./timing.jl:220`

I even checked with my backup code from github and I get the same error. I also tried with the example code in DataStructures.jl, and I get the same error:

```julia
julia> data = collect(enumerate(["foo", "bar", "baz"]))
3-element Vector{Tuple{Int64, String}}:
 (1, "foo")
 (2, "bar")
 (3, "baz")

julia> h1 = BinaryHeap(data) # Standard lexicographic ordering for tuples
ERROR: MethodError: no method matching BinaryHeap(::Vector{Tuple{Int64, String}})
Stacktrace:
 [1] top-level scope
   @ REPL[38]:1

```

I have not updated or installed anything, actually I stopped coding because I was writing a paper, and when I came back to extract some images I started getting this problem.

Anyone has any idea on what could be going on?

Thanks
