Plugin Compile and load  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Plugin Compile and load

Postby SBarnes » Tue Aug 24, 2021 5:24 pm

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.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Plugin Compile and load  Topic is solved

Postby Mike.Sheen » Tue Aug 24, 2021 7:00 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Plugin Compile and load

Postby SBarnes » Tue Aug 24, 2021 7:25 pm

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?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Plugin Compile and load

Postby Mike.Sheen » Wed Aug 25, 2021 1:05 am

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests