jawa0 / aish3

AI LLM Agent with memories
Apache License 2.0
3 stars 1 forks source link

Crash (unhandled exception) when saving workspace #95

Closed jawa0 closed 3 months ago

jawa0 commented 3 months ago

@mentatbot The app is crashing when I hit Ctrl+S, with the following error:

Traceback (most recent call last): File "C:\Users\jabaa\Documents\devel\aish3\aish3.py", line 205, in asyncio.run( File "C:\Python312\Lib\asyncio\runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\aish3.py", line 157, in run gui.handle_event(event) File "C:\Users\jabaa\Documents\devel\aish3\gui\gui.py", line 468, in handle_event return self.handle_keydown(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\gui\gui.py", line 708, in handle_keydown self.save() File "C:\Users\jabaa\Documents\devel\aish3\gui\gui.py", line 1113, in save "gui": self.json(), ^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\gui\gui.py", line 184, in json "content": self._content.json()} ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\gui\gui_container.py", line 95, in json json = super().json() ^^^^^^^^^^^^^^^^^^ File "C:\Users\jabaa\Documents\devel\aish3\gui\gui_control.py", line 64, in json json["z_order"] = self.z_order # Add this line ^^^^^^^^^^^^ AttributeError: 'GUIContainer' object has no attribute 'z_order'

I believe this is related to the recent z_order code changes. Please fix it.

mentatbot[bot] commented 3 months ago

I will start working on this issue