PhonologicalCorpusTools / SLPAA

5 stars 0 forks source link

[BUG] EntryID Type Error when creating new sign #236

Closed brdiep113 closed 11 months ago

brdiep113 commented 11 months ago

Describe the bug When trying to create a new sign, nothing happens because there is an error because the way that we create the unique entry ID string has a type error.

Sample corpus file I used this one for testing: https://drive.google.com/file/d/1gK-sUniAabP4QDKOI79HTFNHijhMy2dW/view?usp=drive_link

To Reproduce Steps to reproduce the behavior:

  1. Click on 'Create a new sign'
  2. See error in log

Expected behavior A new dialog should pop up to prompt the user to create a new sign

Error messages TypeError: unsupported operand type(s) for -: 'str' and 'int'

Screenshots image

Type of the ID is actually a string and not an integer as expected image

image

Operating system and PCT version

kvesik commented 11 months ago

I'm unable to reproduce this. @brdiep113 was there any special context to the issue? The only way for users to choose the value of the setting self.settings['display']['entryid_digits'] is to use a numeric spinbox... I'm curious as to how it ended up with a string value.

brdiep113 commented 11 months ago

I'm not sure, I just kept encountering this error whenever I was working on other tickets. But it showed up especially when working on #78 as I was not able to add a new sign at all