JET.jl icon indicating copy to clipboard operation
JET.jl copied to clipboard

Module / source information sometimes don't match

Open topolarity opened this issue 5 months ago • 0 comments

I hit this error message when running the tests (w/ 1.12 beta3) on https://github.com/topolarity/Graphs.jl/tree/ct/jet-misleading-error :

Code quality (JET.jl): JET-test failed at /home/topolarity/.julia/packages/JET/PvvPV/src/JETBase.jl:1052
  Expression: (JET.report_package)(Graphs; toplevel_logger = nothing, target_defined_modules = true, ignore_missing_comparison = true, mode = typo)
  ═════ 1 possible error found ═════
  ┌  @ Graphs.Parallel ./threadingconstructs.jl:276
  │ `Graphs.Parallel.t` is not defined: Graphs.Parallel.t
  └────────────────────

That is probably my fault (the branch is custom / frozen for this MWE), but I'm confused to see Graphs.Parallel ./threadingconstructs.jl:276

That file looks like it actually comes from Base - I'm not sure if this is a macro not handling lineinfo correctly, or if JET is handling macro-expanded sourceinfo in a funny way

topolarity avatar May 14 '25 13:05 topolarity