PhonologicalCorpusTools / SLPAA

5 stars 0 forks source link

Movement characteristic 'trilled' not showing up in drop down menu #306

Closed gracehobby closed 6 months ago

gracehobby commented 7 months ago

Describe the bug When adding in movement characteristic --> repetition --> 'trilled', the drop down menu on the right will not display this in text (see screenshot, it makes more sense there). This does not happen for other movement characteristics (repeated, or single). Then, in the terminal window this error comes up called an 'attribute error'

Sample corpus file https://drive.google.com/drive/u/0/folders/1mVZW0TdLfqXDe9fmnGU88u6eklyrU61j

2023_04_25_BEAT_v1_BEDROOM_MR_KCH_YG_GH3.slpaa specifically sign 'BECAUSE v2'

To Reproduce Steps to reproduce the behavior:

open SLPAA open a corpus go to movement module go to movement characteristics go to repetition click on trilled see error on right hand drop down menu, and error message in terminal window

Expected behavior "Trilled" selection should appear as normal and be selectable in right-hand menu

Error messages I just copy and pasted what comes up as soon as I click on trilled.

Last login: Thu Apr 18 12:48:05 on ttys000 gracehobby@Graces-MacBook-Air python % arch -x86_64 python3 main.py 2024-04-18 12:49:38.220 Python[84685:4648504] +[CATransaction synchronize] called within transaction Traceback (most recent call last): File "/Users/gracehobby/Documents/SLPAA/src/main/python/main.py", line 8, in exitcode = appctxt.run() ^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec() ^^^^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/xslot_graphics.py", line 270, in mouseReleaseEvent self.scene().modulerect_clicked.emit(self) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 716, in handle_summarymodulebtn_clicked self.open_module_dialog(modulekey, moduletype) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 757, in open_module_dialog moduleselector.exec() File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/modulespecification_widgets.py", line 377, in initStyleOption hasaddedinfo = treeitem.addedinfo.hascontent() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'CheckState' object has no attribute 'hascontent' Traceback (most recent call last): File "/Users/gracehobby/Documents/SLPAA/src/main/python/main.py", line 8, in exitcode = appctxt.run() ^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec() ^^^^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/xslot_graphics.py", line 270, in mouseReleaseEvent self.scene().modulerect_clicked.emit(self) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 716, in handle_summarymodulebtn_clicked self.open_module_dialog(modulekey, moduletype) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 757, in open_module_dialog moduleselector.exec() File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/modulespecification_widgets.py", line 377, in initStyleOption hasaddedinfo = treeitem.addedinfo.hascontent() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'CheckState' object has no attribute 'hascontent' Traceback (most recent call last): File "/Users/gracehobby/Documents/SLPAA/src/main/python/main.py", line 8, in exitcode = appctxt.run() ^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec() ^^^^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/xslot_graphics.py", line 270, in mouseReleaseEvent self.scene().modulerect_clicked.emit(self) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 716, in handle_summarymodulebtn_clicked self.open_module_dialog(modulekey, moduletype) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 757, in open_module_dialog moduleselector.exec() File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/modulespecification_widgets.py", line 377, in initStyleOption hasaddedinfo = treeitem.addedinfo.hascontent() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'CheckState' object has no attribute 'hascontent' Traceback (most recent call last): File "/Users/gracehobby/Documents/SLPAA/src/main/python/main.py", line 8, in exitcode = appctxt.run() ^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec() ^^^^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/xslot_graphics.py", line 270, in mouseReleaseEvent self.scene().modulerect_clicked.emit(self) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 716, in handle_summarymodulebtn_clicked self.open_module_dialog(modulekey, moduletype) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 757, in open_module_dialog moduleselector.exec() File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/modulespecification_widgets.py", line 377, in initStyleOption hasaddedinfo = treeitem.addedinfo.hascontent() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'CheckState' object has no attribute 'hascontent' Traceback (most recent call last): File "/Users/gracehobby/Documents/SLPAA/src/main/python/main.py", line 8, in exitcode = appctxt.run() ^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/app.py", line 15, in run return self.app.exec() ^^^^^^^^^^^^^^^^ File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/xslot_graphics.py", line 270, in mouseReleaseEvent self.scene().modulerect_clicked.emit(self) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 716, in handle_summarymodulebtn_clicked self.open_module_dialog(modulekey, moduletype) File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/panel.py", line 757, in open_module_dialog moduleselector.exec() File "/Users/gracehobby/Documents/SLPAA/src/main/python/gui/modulespecification_widgets.py", line 377, in initStyleOption hasaddedinfo = treeitem.addedinfo.hascontent() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'CheckState' object has no attribute 'hascontent'

Screenshots

Screenshot 2024-04-18 at 10 20 49 AM Screenshot 2024-04-18 at 10 20 41 AM Screenshot 2024-04-18 at 10 20 49 AM

Operating system and SLP-AA version

MacOS Ventura 13.3 M2 chip

This is my first time posting a github issue, so let me know if I have done this correctly !

gracemyz commented 7 months ago

Sorry, reopening - the fix seems to be conflicting with older backwards compatibility for handling number of repetitions