Comments (3)
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.
I'm guessing the anonymous function is important to this failure.
from jet.jl.
from jet.jl.
Related Issues (20)
- false positive: no matching method found HOT 7
- false positives with Base.@kwdef HOT 1
- Define `@test_package` in addition to `report_package`
- Optional analyzer keyword argument gone HOT 2
- JET errors on interface definitions (as it should) - what to do?
- │ ArgumentError: Module JuliaFormatter does not correspond to a loaded package! HOT 2
- JET breaks SnoopCompile
- Add Error Analysis for OptimizationFailureReport
- Add a hook to analyze calls that appear at runtime HOT 1
- False positive for indexing Union{Tuple{},Vector{T}} HOT 2
- Ergonomics: descending into errors HOT 3
- List of Base reports HOT 1
- Line numbers do not Revise HOT 2
- Support JET annotations in source code HOT 4
- False positive: accessing variables from other, possibly undefined modules HOT 1
- Branches that restrict a type HOT 14
- Support "import Module as" syntax HOT 1
- Possible false positive with sort! HOT 4
- Support package extensions HOT 3
- main_uuid not defined HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jet.jl.