Page 1 of 1

Plugin Compile and load

PostPosted: Tue Aug 24, 2021 5:24 pm
by SBarnes
Does a plugin compile and get loaded into memory even if it is not enabled?

The reason I am asking is in replacing a plugin with an embedded version of a library that was a newer version I had to completely delete the old version before Jiwa would accept the new one, disabling the old and restarting didn't let it compile the new version when it was imported.

Re: Plugin Compile and load  Topic is solved

PostPosted: Tue Aug 24, 2021 7:00 pm
by Mike.Sheen
SBarnes wrote:Does a plugin compile and get loaded into memory even if it is not enabled?

Nope. As far as then login process goes, if it is not enabled it doesn't exist - it won't get read, compiled or loaded.

SBarnes wrote:The reason I am asking is in replacing a plugin with an embedded version of a library that was a newer version I had to completely delete the old version before Jiwa would accept the new one, disabling the old and restarting didn't let it compile the new version when it was imported.

I can't see how... need some steps to reproduce to answer why you saw that behaviour.

Re: Plugin Compile and load

PostPosted: Tue Aug 24, 2021 7:25 pm
by SBarnes
Could copying the original version 1 to back it up but as disabled possibly cause it or two plugins both having the same embedded reference library be an issue that could cause it?

Re: Plugin Compile and load

PostPosted: Wed Aug 25, 2021 1:05 am
by Mike.Sheen
SBarnes wrote:Could copying the original version 1 to back it up but as disabled possibly cause it or two plugins both having the same embedded reference library be an issue that could cause it?

No - embedded references are extracted to the folder of the plugin - and loaded as part of the compilation and/or load phase - if you've copied a plugin which has embedded references, and disabled the copy then both the copied, disabled plugin and it's embedded references are not loaded.