Skip to content

.x(0) not working in load mode #52

@secwang

Description

@secwang

secwang@Mac ~/w/c/k/test [SIGINT]> cat exit.kg (base)

.x(0)
secwang@Mac ~/w/c/k/test> kgpy -d exit.kg (base)
args: Namespace(expr=None, load=None, server=None, test=None, verbose=False, debug=True, filename='exit.kg')

Traceback (most recent call last):
File "/opt/anaconda3/bin/kgpy", line 365, in
run_file(klong_loop, klong, args.filename, verbose=args.verbose)
File "/opt/anaconda3/bin/kgpy", line 250, in run_file
run_in_loop(klong_loop, run_in_klong(klong, content))
File "/opt/anaconda3/bin/kgpy", line 207, in run_in_loop
return asyncio.run_coroutine_threadsafe(coro, klong_loop).result()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/concurrent/futures/_base.py", line 451, in result
self._condition.wait(timeout)
File "/opt/anaconda3/lib/python3.12/threading.py", line 355, in wait
waiter.acquire()
KeyboardInterrupt

repl will stuck in .and process is not exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions