Title: Crash on Ctrl-Z · Issue #948 · bpython/bpython · GitHub
Open Graph Title: Crash on Ctrl-Z · Issue #948 · bpython/bpython
X Title: Crash on Ctrl-Z · Issue #948 · bpython/bpython
Description: Hi! Thanks for bpython, I love it's versatility and ability to make sensible suggestions and show documentation on-the-fly. One of my use-cases is using it alternatingly with the shell (e.g. bash), and switching with Ctrl-Z (SIGSTOP) and...
Open Graph Description: Hi! Thanks for bpython, I love it's versatility and ability to make sensible suggestions and show documentation on-the-fly. One of my use-cases is using it alternatingly with the shell (e.g. bash),...
X Description: Hi! Thanks for bpython, I love it's versatility and ability to make sensible suggestions and show documentation on-the-fly. One of my use-cases is using it alternatingly with the shell (e.g. ba...
Opengraph URL: https://github.com/bpython/bpython/issues/948
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash on Ctrl-Z","articleBody":"Hi! Thanks for bpython, I love it's versatility and ability to make sensible suggestions and show documentation on-the-fly.\r\n\r\nOne of my use-cases is using it alternatingly with the shell (e.g. bash), and switching with Ctrl-Z (SIGSTOP) and fg (shell-builtin to foreground bpython again).\r\n\r\nThis use-case became broken at some point.\r\n\r\nSteps to reproduce:\r\n- Open a Terminal, e.g. xfce4-terminal 0.8.10 (shouldn't matter though), with some shell, e.g. bash 5.1.12(1)-release (shouldn't matter though)\r\n- Start bpython (I'm using 0.22.1 with Python 3.9.9, according to bpython)\r\n- Press Ctrl-Z (for some reason, SIGSTOP works as intended, and does not cause a crash.)\r\n\r\nExpected behavior:\r\n\r\n```console\r\nbash$ bpython\r\nbpython Version 0.22.1 mit Python 3.9.9 /usr/bin/python3\r\n\u003e\u003e\u003e \r\n[2]+ Angehalten bpython\r\n[$? = 147]\r\n\r\nbash$ jobs\r\n[1]+ Angehalten bpython\r\n\r\nbash$\r\n```\r\n\r\nActual behavior:\r\n\r\n```console\r\nbash$ bpython\r\nbpython Version 0.22.1 mit Python 3.9.9 /usr/bin/python3\r\n\u003e\u003e\u003e ^Z\r\nTraceback (most recent call last):\r\n File \"/usr/bin/bpython\", line 33, in \u003cmodule\u003e\r\n sys.exit(load_entry_point('bpython==0.22.1', 'console_scripts', 'bpython')())\r\n File \"/usr/lib/python3/dist-packages/bpython/curtsies.py\", line 248, in main\r\n repl.mainloop(True, paste)\r\n File \"/usr/lib/python3/dist-packages/bpython/curtsies.py\", line 180, in mainloop\r\n for e in inputs:\r\n File \"/usr/lib/python3/dist-packages/bpython/curtsies.py\", line 261, in _combined_events\r\n e = event_provider.send(timeout)\r\n File \"/usr/lib/python3/dist-packages/curtsies/input.py\", line 212, in send\r\n return self._send(timeout)\r\n File \"/usr/lib/python3/dist-packages/curtsies/input.py\", line 264, in _send\r\n stdin_ready_for_read, event = self._wait_for_read_ready_or_timeout(\r\n File \"/usr/lib/python3/dist-packages/curtsies/input.py\", line 170, in _wait_for_read_ready_or_timeout\r\n (rs, _, _) = select.select(\r\n File \"/usr/lib/python3/dist-packages/bpython/curtsiesfrontend/repl.py\", line 613, in sigtstp_handler\r\n self.__exit__()\r\nTypeError: __exit__() missing 3 required positional arguments: 'exc_type', 'exc_val', and 'exc_tb'\r\n[$? = 1]\r\n\r\nbash$ jobs\r\n\r\nbash$\r\n```\r\n\r\n(\"Angehalten\" is German for \"Stopped\".)","author":{"url":"https://github.com/BenWiederhake","@type":"Person","name":"BenWiederhake"},"datePublished":"2022-01-08T11:52:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/948/bpython/issues/948"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4b21ceb-9fad-ef2d-de70-1d691796cb91 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D10E:2001BB:DDD7ED:131572C:6968A866 |
| html-safe-nonce | 49fa978274adcd4c350ff5cc02f865f200fc924703fc3ee145c7f32e45bf885f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTBFOjIwMDFCQjpEREQ3RUQ6MTMxNTcyQzo2OTY4QTg2NiIsInZpc2l0b3JfaWQiOiI3MjIxNjA0MDEyMzYyNjA2Njk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 80fc79aa4cc24b02c59dab0b3a25731f37b4d113ac56cc4eeb9f25f8ca7e85df |
| hovercard-subject-tag | issue:1096908798 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/948/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7e4556bf339ad95422ea0cb47e5195acb7f2ba6b01a96d0fb22836cd9ad4b32/bpython/bpython/issues/948 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7e4556bf339ad95422ea0cb47e5195acb7f2ba6b01a96d0fb22836cd9ad4b32/bpython/bpython/issues/948 |
| og:image:alt | Hi! Thanks for bpython, I love it's versatility and ability to make sensible suggestions and show documentation on-the-fly. One of my use-cases is using it alternatingly with the shell (e.g. bash),... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BenWiederhake |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width