ooflet / Mi-Create

Unofficial watchface creator for Xiaomi wearables ~2021 and above
https://ooflet.github.io/docs
GNU General Public License v3.0
34 stars 4 forks source link

internal error 2 #28

Closed secretmango closed 1 week ago

secretmango commented 1 week ago
Internal error! Please report as a bug.

Traceback (most recent call last):
  File "/var/home/user/Git/Mi-Create/src/./main.py", line 1173, in <lambda>
    canvas.scene().selectionChanged.connect(lambda: self.updateProjectSelections("canvas"))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/user/Git/Mi-Create/src/./main.py", line 1065, in updateProjectSelections
    self.updateProperties(currentCanvasSelected[0],
  File "/var/home/user/Git/Mi-Create/src/./main.py", line 780, in updateProperties
    self.propertiesWidget.loadProperties(self.propertyJson[itemType], currentProject["project"], item,
  File "/var/home/user/Git/Mi-Create/src/widgets/properties.py", line 540, in loadProperties
    self.addProperties(properties["properties"], project, widgetName, resourceList, None, device)
  File "/var/home/user/Git/Mi-Create/src/widgets/properties.py", line 333, in addProperties
    self.addProperties(property, project, widgetName, resourceList, categoryItem, device)  # Recursively add sub-categories
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/user/Git/Mi-Create/src/widgets/properties.py", line 461, in addProperties
    createInput(index)
  File "/var/home/user/Git/Mi-Create/src/widgets/properties.py", line 442, in createInput
    imageInput = self.createResourceEdit(text, False, resourceList, True)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/user/Git/Mi-Create/src/widgets/properties.py", line 195, in createResourceEdit
    resourceEdit.setCurrentText(text)
TypeError: setCurrentText(self, text: Optional[str]): argument 1 has unexpected type 'list'

again changing some data type stuff

ooflet commented 1 week ago

I am unable to replicate. What were you attempting to do? Could you send your .fprj file?

Pranav-ONLY commented 1 week ago

Maybe the .fprj file is corrupted.

secretmango commented 1 week ago

yeah no problem.

minimal-1.fprj.zip

ooflet commented 1 week ago

Fixed, may I ask what you did to get the error? It doesn't seems to be an error that could spontaneously happen by the program 😅