-
-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
bugAn issue in the applicationAn issue in the application
Description
Describe the bug
When a programmatically created association is selected in the tree, neither the client or supplier values are displayed in the Property Editor
To Reproduce
Steps to reproduce the behavior:
- Create an association using the API. Set owning package, both memberEnds and ownedEnd
- Select the association in the user interface tree. An error is generated
Expected behavior
The Property Editor should show the details of the association without showing an error.
Screenshots
Gaphor version: 2.26.0
Operating System: Windows (10)
Display: GdkWin32Display
Python version: 3.12.4
GTK version: 4.14.4
Adwaita version: 1.5.2
GtkSourceView version: 5.12.1
Cairo version: 1.18.0
Pango version: 1.54.0
PyGObject version: 3.48.2
Pycairo version: 1.26.1
Errors:
Time since application startup: 0:23:27
|Traceback (most recent call last):
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\gaphor\UML\classes\associationpropertypages.py", line 148, in _on_end_navigability_change
| with Transaction(self.event_manager):
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\gaphor\transaction.py", line 58, in __init__
| self._handle(TransactionBegin(self.context))
| | | -> <gaphor.transaction.Transaction object at 0x000002A8D3750B00>
| | -> <class 'gaphor.event.TransactionBegin'>
| -> <gaphor.transaction.Transaction object at 0x000002A8D3750B00>
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\gaphor\transaction.py", line 113, in _handle
| self.event_manager.handle(event)
| | -> <gaphor.event.TransactionBegin object at 0x000002A8D3750B30>
| -> <gaphor.transaction.Transaction object at 0x000002A8D3750B00>
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\gaphor\core\eventmanager.py", line 77, in handle
| self._priority.handle(event)
| | -> <gaphor.event.TransactionBegin object at 0x000002A8D3750B30>
| -> <gaphor.core.eventmanager.EventManager object at 0x000002A8C9680380>
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\generic\event.py", line 63, in handle
| raise ExceptionGroup("Error while handling events", exceptions)
| -> [AssertionError()]
|ExceptionGroup: Error while handling events (1 sub-exception)
└─┬──────────────────────────────╌┄┈
|Traceback (most recent call last):
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\generic\event.py", line 59, in handle
| handler(event)
| | -> <gaphor.event.TransactionBegin object at 0x000002A8D3750B30>
| -> <bound method UndoManager.begin_transaction of <gaphor.services.undomanager.UndoManager object at 0x000002A8C9610F80>>
| File "c:\Users\pbrow\Workspaces\GaphorMDImportPlugin\.venv\Lib\site-packages\gaphor\services\undomanager.py", line 179, in begin_transaction
| assert not self._current_transaction
| -> <gaphor.services.undomanager.UndoManager object at 0x000002A8C9610F80>
|AssertionError: assert not self._current_transaction
└─────────────────────────────╌┄┈
OS
- Linux (Please put in notes the specific distro)
- macOS
- Windows
Version
Version of Gaphor: 2.26.0
Additional information
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugAn issue in the applicationAn issue in the application