Tiny Dictionary shows all test versions of a library

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Tiny Dictionary shows all test versions of a library

Post by bn » Wed Jul 17, 2024 12:59 pm

Simon posted over in the announcement section a reply to the announcement of a new version of TinyDictionary,

I prefer to discuss this here because it could be a longer thread which does not fit well into the announcement section.

Hi Simon,

how did you test the builds of your library? Using the "Extension Builder"? Or did you check the formatting of the dictionary?
I have never seen this but then I might not have looked.
What happens if you close LC and reopen it?

Have you looked at the built-in dictionary of LC to check that it does not have all those entries also?

TinyDictionary purges its chache on closing. Then it rebuilds itself at the next start from scratch: i.e. it reads file "api.sqlite" which on a Mac is located:
/Users/berndnig/Library/Application Support/RunRev/Documentation Cache/9_6_13_rc_1/IDE/api.sqlite

If you are on Windows the path to the documentation can be found by putting into the message box:

Code: Select all

put revIDEspecialfolderpath("documentation cache")
There is a folder for the version of LC you are currently using with all the documentation relevant information.
It is no problem to close LC, delete that folder and restart. LC will rebuild the folder at the next start an only include the information that is current.
LC is not deleting entries that are once in the documentation cache.

So at the moment I have to guess how all the versions got there.

Kind regards
Bernd

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Tiny Dictionary shows all test versions of a library

Post by Simon Knight » Wed Jul 17, 2024 1:35 pm

Hi Bernd,

I tested the various builds of my extension using the built in Extension Builder. It seems that changing the name on each test was a bad idea as this caused a new folder to be added to the document cache. I count five not sixteen which is odd. However, I trashed the cache and see a single entry in TinyDictionary it is listed as a separate dictionary which looks correct as that is how other extensions are listed.

I have a zipped copy of the cache if it is of interest. Its to large for the forum but should email o.k.

best wishes

Simon
best wishes
Skids

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Tiny Dictionary shows all test versions of a library

Post by bn » Wed Jul 17, 2024 2:34 pm

Hi Simon,

I see. So that is in a way normal since LC only adds to the cache.
Trashing the cache is the way to get rid of outdated stuff.
By the way you probably have a lot of old caches from various versions of LC that take up some disk space. You can trash those also. In case you use one of those version it is rebuilt again.

One question: Did you install those builts from Extension Builder or did you just test in Extension Builder?

I am glad it is not a TinyDictionary bug... :)

Kind regards
Bernd

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Tiny Dictionary shows all test versions of a library

Post by Simon Knight » Wed Jul 17, 2024 3:59 pm

Hi Bernd,

Yes its a feature of Livecode. As to my testing; I installed a few versions others refused to build but it looks like their documentation gets saved.

I can't help thinking that if RunRev had achieved their 2016 target of a thousand widgets by Christmas the IDE would be in trouble. The widget manager just seems to create an unsorted list of extensions and widgets and who knows what the tools pallet would look like rammed with over a hundred icons.

I was going to count how many icons my copy of Livecode is displaying but unfortunately they are not being loaded at start. Arrrgh!

Simon
best wishes
Skids

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Tiny Dictionary shows all test versions of a library

Post by Simon Knight » Wed Jul 17, 2024 6:00 pm

They are back. The log file reported missing manifest file or file with missing extension. It took a computer restart to recover them, I took the precaution of deleting them and reinstalling.
best wishes
Skids

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Tiny Dictionary shows all test versions of a library

Post by bn » Thu Jul 18, 2024 7:53 am

Hi Simon,

I have no idea what is happening.
Simon Knight wrote:
Wed Jul 17, 2024 6:00 pm
They are back. The log file reported missing manifest file or file with missing extension. It took a computer restart to recover them, I took the precaution of deleting them and reinstalling.

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Tiny Dictionary shows all test versions of a library

Post by Simon Knight » Thu Jul 18, 2024 7:56 am

Hi Bernd,

I think it was a problem with Mac OS. I should have tried a computer restart first but did not think of it as its not often needed these days.

All seems well now though.

S
best wishes
Skids

Post Reply