BoraxTheClean / adaptable-antelopes

Code Jam 2021 adaptable antelopes team
MIT License
1 stars 0 forks source link

Error invalid state when double clicking ok of scroll_menu #20

Closed CupOfGeo closed 3 years ago

CupOfGeo commented 3 years ago

Unhandled exception in event loop: File "/usr/local/Cellar/python@3.8/3.8.10/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/input/vt100.py", line 168, in callback_wrapper callback() File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 691, in read_from_input self.key_processor.process_keys() File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/key_binding/key_processor.py", line 274, in process_keys self._process_coroutine.send(key_press) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/key_binding/key_processor.py", line 186, in _process self._call_handler(matches[-1], key_sequence=buffer[:]) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/key_binding/key_processor.py", line 329, in _call_handler handler.call(event) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 102, in call result = self.handler(event) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/keybinding/bindings/mouse.py", line 98, in handler(MouseEvent(position=Point(x=x, y=y), event_type=mouse_event_type)) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/layout/containers.py", line 1860, in mouse_handler result = self.content.mouse_handler( File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/layout/controls.py", line 474, in mouse_handler return handler(mouse_event) File "/Users/Code/adaptable-antelopes/venv/lib/python3.8/site-packages/prompt_toolkit/widgets/base.py", line 441, in handler self.handler() File "text_editor.py", line 143, in ok_button = Button(text="OK", handler=(lambda: set_done())) File "text_editor.py", line 140, in set_done self.future.set_result(None)

Exception invalid state

CupOfGeo commented 3 years ago

no a big deal at the moment but just something to be aware of

ntdkhiem commented 3 years ago

I couldn't re-produce this bug and I haven't seen this error since the beginning. Do you it's safe to close this for now?

SharpBit commented 3 years ago

I couldn't re-produce this bug and I haven't seen this error since the beginning. Do you it's safe to close this for now?

Same here