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

Kernel hangs if invalid shell command is entered #13

Open
sohang3112 opened this issue Nov 11, 2023 · 0 comments
Open

Kernel hangs if invalid shell command is entered #13

sohang3112 opened this issue Nov 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@sohang3112
Copy link
Owner

For example, if an invalid shell command !lsd is entered in a cell, kernel hangs due to uncaught error:

Traceback (most recent call last):
  File "/home/sohang/.local/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 412, in dispatch_shell
    await result
  File "/home/sohang/.local/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 731, in execute_request
    reply_content = self.do_execute(
  File "/mnt/d/iforth/forth_kernel/forth_kernel.py", line 113, in do_execute
    self.answer_text(check_output(code[1:], encoding='utf-8'), 'stdout')
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'lsd'
@sohang3112 sohang3112 added the bug Something isn't working label Nov 11, 2023
@sohang3112 sohang3112 self-assigned this Nov 11, 2023
@sohang3112 sohang3112 added the good first issue Good for newcomers label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant