Page 1 of 1

Tiny Dictionary shows all test versions of a library

Posted: Wed Jul 17, 2024 12:59 pm
by bn
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

Re: Tiny Dictionary shows all test versions of a library

Posted: Wed Jul 17, 2024 1:35 pm
by Simon Knight
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

Re: Tiny Dictionary shows all test versions of a library

Posted: Wed Jul 17, 2024 2:34 pm
by bn
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

Re: Tiny Dictionary shows all test versions of a library

Posted: Wed Jul 17, 2024 3:59 pm
by Simon Knight
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

Re: Tiny Dictionary shows all test versions of a library

Posted: Wed Jul 17, 2024 6:00 pm
by Simon Knight
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.

Re: Tiny Dictionary shows all test versions of a library

Posted: Thu Jul 18, 2024 7:53 am
by bn
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.

Re: Tiny Dictionary shows all test versions of a library

Posted: Thu Jul 18, 2024 7:56 am
by Simon Knight
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