Cant load plugins all of a sudden

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Cant load plugins all of a sudden

Post by dunbarx » Fri Oct 29, 2021 1:44 pm

This just happened, again. Mac OS 10.15.7

I have my favorite gadget stack in ".../Documents/My LiveCode/Plugins".

In a new session, the plugin will not load. I have to open it by hand and place it in use. This actually happened a few times in the past. Not sure how I fixed those.

Craig

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Cant load plugins all of a sudden

Post by mwieder » Fri Oct 29, 2021 10:36 pm

Craig-

Look at your preferences. My guess is that it's not pointing where you think it is any more.
As to why, I dunno. But maybe explicitly set it to point to Documents and see if that fixes it.

stam
Posts: 3072
Joined: Sun Jun 04, 2006 9:39 pm

Re: Cant load plugins all of a sudden

Post by stam » Sat Oct 30, 2021 3:49 pm

Sometimes I find I have to put adding into a folder called “extensions” and sometimes a folder called “plugins” both in the same directory, no matter which is linked in the prefs.

If you’ve confirmed your prefs for the directory is set, it might be with trying folders with alternate naming…

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Cant load plugins all of a sudden

Post by mwieder » Sat Oct 30, 2021 5:01 pm

The preferences should actually (and this is annoyingly not well documented) point to the directory that encloses both the extensions and plugins folders. So if you have

My LiveCode
Extensions
Plugins

you should point the preferences entry to "My LiveCode".

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Cant load plugins all of a sudden

Post by FourthWorld » Sat Oct 30, 2021 5:19 pm

If it turns out to be Prefs, please file a bug report.

Somehow the prefs subsystem became brittle several versions back, and given its role in so many things it's become a common source of IDE failure.

But it's just Prefs, not some exotic technology. It shouldn't be such a pervasive cause of bad experiences.

I imagine the issue has stuck around as long as it has because recipes have been few. Adding one more case may help, if of course we find that's what happened here.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Cant load plugins all of a sudden

Post by mwieder » Sat Oct 30, 2021 5:23 pm

What would be really useful is if someone could save a copy of the bad preferences file instead of just deleting it, and then attach that to the bug report. I swear I'll do that if my preferences file gets corrupted again, but it hasn't happened in quite a while now.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Cant load plugins all of a sudden

Post by dunbarx » Mon Nov 01, 2021 2:40 pm

Thanks for all the replies.

OK.

It seems that I had another folder named "My LiveCode Stacks" buried several folders deep in the "Documents" folder. Even though I explicitly selected the "My LiveCode Stacks" one level down within "Documents" in the "Files and Memory" preferences, when I renamed that lower level folder, all turned out well.

Why did it change? Hahaha..

Why does another folder of the same name somewhere else, and nowhere near the pathname chosen in the preferences matter? Mmmmph, AHAHAHA.

Craig

Post Reply