Giter Site home page Giter Site logo

World age issue about jet.jl HOT 3 CLOSED

aviatesk avatar aviatesk commented on June 2, 2024
World age issue

from jet.jl.

Comments (3)

aviatesk avatar aviatesk commented on June 2, 2024

I remember last time I tried JET on some test files, I found @test_warn also fails with the same issues:

test_warn.lj

using Test

@test_warn "foo" println(stderr, "foo")
> jet test_warn.jl

caused by: MethodError: no method matching (::Main.##JETVirtualModule#257.var"#1#3")(::IOStream)
The applicable method may be too new: running in world age 29857, while current world is 29859.
Closest candidates are:
  (::Main.##JETVirtualModule#257.var"#1#3")(::Any) at /Users/aviatesk/julia/julia/usr/share/julia/stdlib/v1.7/Test/src/Test.jl:669 (method too new to be called from this world context.)
Stacktrace:
  [1] open(::Main.##JETVirtualModule#257.var"#1#3", ::String, ::Vararg{String}; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:330
  [2] open(::Function, ::String, ::String)
    @ Base ./io.jl:328
  [3] evaluate_call_recurse!(interp::JET.ConcreteInterpreter, frame::JuliaInterpreter.Frame, call_expr::Expr; enter_generated::Bool)
    @ JET ~/julia/packages/JET/src/virtualprocess.jl:420
  [4] evaluate_call_recurse!
    @ ~/julia/packages/JET/src/virtualprocess.jl:407 [inlined]
  [5] eval_rhs(recurse::Any, frame::JuliaInterpreter.Frame, node::Expr)
    @ JuliaInterpreter ~/julia/packages/JuliaInterpreter/src/interpret.jl:395
  [6] step_expr!(recurse::Any, frame::JuliaInterpreter.Frame, node::Any, istoplevel::Bool)
    @ JuliaInterpreter ~/julia/packages/JuliaInterpreter/src/interpret.jl:451
  [7] step_expr!(interp::JET.ConcreteInterpreter, frame::JuliaInterpreter.Frame, node::Any, istoplevel::Bool)
    @ JET ~/julia/packages/JET/src/virtualprocess.jl:374
  [8] step_expr!(recurse::Any, frame::JuliaInterpreter.Frame, istoplevel::Bool)
    @ JuliaInterpreter ~/julia/packages/JuliaInterpreter/src/interpret.jl:588
  [9] selective_eval!(recurse::Any, frame::JuliaInterpreter.Frame, isrequired::Vector{Bool}, istoplevel::Bool)
    @ LoweredCodeUtils ~/julia/packages/LoweredCodeUtils/src/codeedges.jl:794
 [10] selective_eval_fromstart!(recurse::Any, frame::JuliaInterpreter.Frame, isrequired::Vector{Bool}, istoplevel::Bool)
    @ LoweredCodeUtils ~/julia/packages/LoweredCodeUtils/src/codeedges.jl:819
 [11] #invokelatest#2
    @ ./essentials.jl:714 [inlined]
 [12] invokelatest
    @ ./essentials.jl:712 [inlined]
 [13] partially_interpret!
    @ ~/julia/packages/JET/src/virtualprocess.jl:282 [inlined]
 [14] virtual_process!(toplevelex::Expr, filename::String, virtualmod::Module, actualmodsym::Symbol, interp::JET.JETInterpreter, ret::NamedTuple{(:included_files, :toplevel_error_reports, :inference_error_reports), Tuple{Set{String}, Vector{JET.ToplevelErrorReport}, Vector{JET.InferenceErrorReport}}})
    @ JET ~/julia/packages/JET/src/virtualprocess.jl:183
 [15] virtual_process!(s::String, filename::String, virtualmod::Module, actualmodsym::Symbol, interp::JET.JETInterpreter, ret::NamedTuple{(:included_files, :toplevel_error_reports, :inference_error_reports), Tuple{Set{String}, Vector{JET.ToplevelErrorReport}, Vector{JET.InferenceErrorReport}}})
    @ JET ~/julia/packages/JET/src/virtualprocess.jl:74
 [16] virtual_process!
    @ ~/julia/packages/JET/src/virtualprocess.jl:61 [inlined]
 [17] #collect_reports#109
    @ ~/julia/packages/JET/src/JET.jl:479 [inlined]
 [18] collect_reports
    @ ~/julia/packages/JET/src/JET.jl:476 [inlined]
 [19] #collect_reports#107
    @ ~/julia/packages/JET/src/JET.jl:460 [inlined]
 [20] collect_reports
    @ ~/julia/packages/JET/src/JET.jl:460 [inlined]
 [21] profile_text(io::Base.TTY, text::String, filename::String, mod::Module; profiling_logger::Nothing, jetconfigs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ JET ~/julia/packages/JET/src/JET.jl:450
 [22] profile_text
    @ ~/julia/packages/JET/src/JET.jl:450 [inlined]
 [23] #profile_file#103
    @ ~/julia/packages/JET/src/JET.jl:440 [inlined]
 [24] profile_file
    @ ~/julia/packages/JET/src/JET.jl:439 [inlined]
 [25] profile_file(args::String; jetconfigs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ JET ~/julia/packages/JET/src/JET.jl:442
 [26] profile_file(args::String)
    @ JET ~/julia/packages/JET/src/JET.jl:442
 [27] top-level scope
    @ ~/julia/packages/JET/jet:10

from jet.jl.

timholy avatar timholy commented on June 2, 2024

I'm guessing the anonymous function is important to this failure.

from jet.jl.

timholy avatar timholy commented on June 2, 2024

👍

from jet.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.