Giter Club home page Giter Club logo

Comments (1)

DilumAluthge avatar DilumAluthge commented on June 20, 2024

Okay, I have a MWE:

julia> import Traceur

julia> @inline function bar()
       b = Set{String}()
       return b
       end
bar (generic function with 1 method)

julia> Traceur.@trace bar()
ERROR: MethodError: no method matching unsafe_convert(::Type{Int64}, ::typeof(Core.cconvert))
Closest candidates are:
  unsafe_convert(::Type{T}, ::T) where T at boot.jl:424
Stacktrace:
  [1] call(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function, ::Type, ::Function)
    @ Cassette ~/.julia/packages/Cassette/158rp/src/context.jl:456
  [2] fallback(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function, ::Vararg{Any,N} where N)
    @ Cassette ~/.julia/packages/Cassette/158rp/src/context.jl:454
  [3] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::typeof(Core.unsafe_convert), ::Type{Int64}, ::typeof(Core.cconvert))
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:536
  [4] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function, ::Type, ::Function)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
  [5] Array
    @ ./boot.jl:433 [inlined]
  [6] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type{Vector{UInt8}}, ::UndefInitializer, ::Int64)
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
  [7] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type, ::UndefInitializer, ::Int64)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
  [8] Array
    @ ./boot.jl:442 [inlined]
  [9] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type{Vector{UInt8}}, ::UndefInitializer, ::Tuple{Int64})
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [10] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type, ::UndefInitializer, ::Tuple{Int64})
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [11] zeros
    @ ./array.jl:525 [inlined]
 [12] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::typeof(zeros), ::Type{UInt8}, ::Tuple{Int64})
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [13] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function, ::Type, ::Tuple{Int64})
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [14] zeros
    @ ./array.jl:521 [inlined]
 [15] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::typeof(zeros), ::Type{UInt8}, ::Int64)
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [16] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function, ::Type, ::Int64)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [17] Dict
    @ ./dict.jl:90 [inlined]
 [18] overdub(overdub_context#256::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, overdub_arguments#257::Type{Dict{String,Nothing}})
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [19] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [20] Set
    @ ./set.jl:6 [inlined]
 [21] overdub(overdub_context#256::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, overdub_arguments#257::Type{Set{String}})
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [22] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Type)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [23] bar
    @ ./REPL[2]:2 [inlined]
 [24] overdub(overdub_context#256::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, overdub_arguments#257::typeof(bar))
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [25] overdub(::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, ::Function)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:47
 [26] #1
    @ ~/.julia/packages/Traceur/ajxdS/src/trace.jl:88 [inlined]
 [27] recurse(overdub_context#256::Cassette.Context{nametype(TraceurCtx),Traceur.Trace,Nothing,Cassette.var"##PassType#258",Nothing,Nothing}, overdub_arguments#257::var"#1#2")
    @ Cassette ~/.julia/packages/Cassette/158rp/src/overdub.jl:0
 [28] trace(w::Function, f::Function; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}})
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:51
 [29] trace
    @ ~/.julia/packages/Traceur/ajxdS/src/trace.jl:51 [inlined]
 [30] #warntrace#21
    @ ~/.julia/packages/Traceur/ajxdS/src/trace.jl:54 [inlined]
 [31] warntrace(f::Function)
    @ Traceur ~/.julia/packages/Traceur/ajxdS/src/trace.jl:54
 [32] top-level scope
    @ ~/.julia/packages/Traceur/ajxdS/src/trace.jl:88

To edit a specific method, type the corresponding number into the REPL and press Ctrl+Q

from traceur.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.