I l;oad my inspections using through my inspectionToolProvider extension.
I want to be able to supply inspections dynamically using Lua.
My first couple trys at this were moderately successful - but I kept running into classloader issues. Before I do anything to hacky. I'd like to know if this is just the wrong way to go about this.
Basically I get a static initializer error from one of the base classes that can't find its bundle.
I am trying to create Java classes forr each inspection written in Lua. I could just write one and call it LuaInspections, and then I wouldn't have this problem because I could avoiid creating the Inspection classes while the EP is running, and instead just do it during the inspections.
I would like it to be seamless, so the user cant tell if the inspection is written in Lua or Java.
Is there a way to add the inspections once I am running using the plugin classloader?
It may well have just been bad implementation on my part - but I was wondering if you had any advice about the best way to provide these "dynamic" or "user supplied' inspections.