In Preferences/Libraries, a filelib with no Id/Name leads to loss of user-added Libraries in axoloti.prefs


#1

Ubuntu 14.04
Axoloti Patcher, Developer Build, 1.0.10-15-ge4b6308
Build Date: 19/05/2016 22:15:34 EDT

Hi! I believe I can replicate this:

Use File->Preferences...->Libraries, then "+" to add a local library, but don't fill in an Id.
At this point, the software struct in mem works fine during that session. Patches using objects in the Libraries are loaded. And axoloti.prefs reflects the added libraries. Verified after quitting. (Id element in .prefs file looks like ).

Then restart Axoloti Patcher.
Select File->Preferences... again and look at the Libraries list.
You may see that the data structure in software is blank except for stock paths: factory, home, community. The user paths don't load properly anymore. (and clearly patches requiring these won't load). And this is extra evil because when you exit, this empty version gets saved in the axoloti.prefs!

If on the other hand, you make a lib with an Id my paths don't get wiped out.

Also note that the same field has two differing names "Id" and "Name".

Symptoms:
1. Patches using user objects in the Libraries path don't load properly. ("But I added that filelib two times again and it ran, but not when I reloaded!")

  1. Preferences/Libraries only has three stock locations (factory, home, community).

  2. axoloti.prefs file doesn't include relating to user-added libraries.

Workaround: Fill in the "Id" field when adding a file to your libraries path.

BTW axoloti fooking rocks.


#2

thanks

fixed in dev, sent PR