We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9fbc57 commit e994993Copy full SHA for e994993
etc/jet.jl
@@ -0,0 +1,23 @@
1
+using Revise
2
+using JET
3
+
4
+struct AnyFrameMethod <: ReportMatcher
5
+ m::Union{Function,Method,Symbol}
6
+end
7
8
+function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
9
+ # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
10
+ m = matcher.m
11
+ if m isa Symbol
12
+ return any(vf -> vf.linfo.def.name === m, report.vst)
13
+ elseif m isa Method
14
+ return any(vf -> vf.linfo.def === m, report.vst)
15
+ else # if m isa Function
16
+ return any(vf -> vf.linfo.def in methods(m), report.vst)
17
+ end
18
19
20
+using GAP; report_package(GAP; ignored_modules=[
21
+ AnyFrameMethod(:is_loaded_directly),
22
+ AnyFrameMethod(:ca_roots_path),
23
+ ])
0 commit comments