Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad behavior on abort of file load #297

Open
bgribble opened this issue Feb 2, 2024 · 0 comments
Open

Bad behavior on abort of file load #297

bgribble opened this issue Feb 2, 2024 · 0 comments
Labels

Comments

@bgribble
Copy link
Owner

bgribble commented Feb 2, 2024

IF you C-o to open a file, then hit ESC to abort while editing the file name, you can be left with a vestigial empty patch with a weird name and sometimes a traceback on the console.

[ 687.406   main] Patch.register_file: registering type 'aoc23_08_a' from file '/home/grib/devel/mfp/aoc23_08_a.mfp'
[ 687.415   main] [TaskNibbler] launching task
[ 687.501   main] Patch loaded, elapsed time 0:00:00.100448
[ 687.677   main] [TaskNibbler] Exception
[ 687.685   main] Traceback (most recent call last):
[ 687.685   main]   File "/usr/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
[ 687.685   main]     return fut.result()
[ 687.685   main]            ^^^^^^^^^^^^
[ 687.685   main]   File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait
[ 687.685   main]     await fut
[ 687.685   main] asyncio.exceptions.CancelledError
[ 687.685   main]
[ 687.685   main] The above exception was the direct cause of the following exception:
[ 687.685   main]
[ 687.685   main] Traceback (most recent call last):
[ 687.685   main]   File "/home/grib/devel/mfp/.virtual/lib/python3.11/site-packages/mfp/utils.py", line 295, in _task_launcher
[ 687.685   main]     await self._process_queue()
[ 687.685   main]   File "/home/grib/devel/mfp/.virtual/lib/python3.11/site-packages/mfp/utils.py", line 343, in _process_queue
[ 687.685   main]     await asyncio.wait_for(self.new_work.wait(), 0.26)
[ 687.685   main]   File "/usr/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
[ 687.685   main]     raise exceptions.TimeoutError() from exc
@bgribble bgribble added the bug label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant