PhonologicalCorpusTools / SLPAA

5 stars 0 forks source link

"Preferences" menu not accessible #294

Closed kchall closed 4 months ago

kchall commented 4 months ago

Hmm, perhaps after issue #283 or #291 -- I can no longer access the "Preferences" menu at all to even see the Entry ID options. Clicking on "Preferences" gives me the following error (on my Mac, 11.3.1):

Traceback (most recent call last): File "<string>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/run.py", line 156, in main ret = method(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/run.py", line 559, in runcode exec(code, self.locals) File "/Users/KCH/Desktop/SLPAA/src/main/python/main.py", line 8, in <module> exit_code = appctxt.run() File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec_() File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/main_window.py", line 768, in on_action_edit_preference pref_dialog = PreferenceDialog(self.app_settings, File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/preference_dialog.py", line 505, in __init__ self.entryid_tab = EntryIDTab(settings, parent=self) File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/preference_dialog.py", line 210, in __init__ self.delim_combo = EntryIDElementComboBox(datatype="delimiter", curvalue=self.qsettings_entryid.value('delimiter', type=str), parent=self) File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/preference_dialog.py", line 91, in __init__ self.set_value(curvalue) File "/Users/KCH/Desktop/SLPAA/src/main/python/gui/preference_dialog.py", line 98, in set_value curtext = curvalue + " (" + self.delim_descriptions[curvalue] + ")" KeyError: ' '

kvesik commented 4 months ago

Thanks! I think this is a mac-only problem, but I also think I know how to fix it. Coming soon!

kvesik commented 4 months ago

Not a mac-only problem after all; I just coincidentally hadn't yet created the same conditions that you had. Should be good now.