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

Support package extensions

Open rafaqz opened this issue 1 year ago • 3 comments

I'm moving a lot of code to extensions and wanted to run JET afterwards. But it seems this is quite difficult?

report_package doesn't report on extensions, and report_file isnt giving me any errors, which is suspicious.

It would be useful to have a function like:

JET.report_extension(Package, :ExtensionName)

rafaqz avatar May 28 '23 12:05 rafaqz

You can use Base.get_extension for this:

help?> Base.get_extension
  get_extension(parent::Module, extension::Symbol)


  Return the module for extension of parent or return nothing if the extension is not loaded.

MasonProtter avatar Jun 10 '23 21:06 MasonProtter

But extension modules dont actually work in report_package.

How do you mean to use that exactly?

rafaqz avatar Jun 10 '23 22:06 rafaqz

Ah I see yeah, my mistake. We'd need to fix the find mechanisms for these.

MasonProtter avatar Jun 11 '23 20:06 MasonProtter