MilesCranmer / DispatchDoctor.jl

The dispatch doctor prescribes type stability
Apache License 2.0
128 stars 6 forks source link

More accurate source tracking #20

Closed MilesCranmer closed 1 month ago

MilesCranmer commented 1 month ago

Basically it just extracts the first LineNumberNode in the expression and puts that in the error message/warning message. So even if the Julia backtrace is innaccurate, at least the message gives the key info.

coveralls commented 1 month ago

Coverage Status

coverage: 97.021% (+0.2%) from 96.833% when pulling 235703aa35dd2f6ce02a23a9f4921530d85f1476 on better-source-info into 028febc34f1a8db5c3b58080b72089557fad80cf on main.