René's URL Explorer Experiment


Title: Catch exceptions to avoid restarting session · Issue #50 · wp-cli/shell-command · GitHub

Open Graph Title: Catch exceptions to avoid restarting session · Issue #50 · wp-cli/shell-command

X Title: Catch exceptions to avoid restarting session · Issue #50 · wp-cli/shell-command

Description: Feature Request Yes, I reviewed the contribution guidelines. Describe your use case and the problem you are facing Making typos/etc often results in a fatal error, and the session crashes and has to be restarted. After restarting, I have...

Open Graph Description: Feature Request Yes, I reviewed the contribution guidelines. Describe your use case and the problem you are facing Making typos/etc often results in a fatal error, and the session crashes and has t...

X Description: Feature Request Yes, I reviewed the contribution guidelines. Describe your use case and the problem you are facing Making typos/etc often results in a fatal error, and the session crashes and has t...

Opengraph URL: https://github.com/wp-cli/shell-command/issues/50

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Catch exceptions to avoid restarting session","articleBody":"## Feature Request\r\n\r\n- [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\r\n\r\n**Describe your use case and the problem you are facing**\r\n\r\nMaking typos/etc often results in a fatal error, and the session crashes and has to be restarted. After restarting, I have to recreate any variables, includes, etc from scratch, without making any fatal errors. That often makes it just too frustrating to use.\r\n\r\n\r\n```sh\r\n> wp shell\r\nwp> require 'foo.txt';\r\nWarning: require(foo.txt): Failed to open stream: No such file or directory in phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php(32) : eval()'d code on line 1\r\nFatal error: Uncaught Error: Failed opening required 'foo.txt' (include_path='.:/usr/local/Cellar/php/8.0.0_1/share/php/pear') in phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php(32) : eval()'d code:1\r\nStack trace:\r\n#0 phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php(32): eval()\r\n#1 phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/Shell_Command.php(51): WP_CLI\\Shell\\REPL->start()\r\n#2 [internal function]: Shell_Command->__invoke(Array, Array)\r\n#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(98): call_user_func(Array, Array, Array)\r\n#4 [internal function]: WP_CLI\\Dispatcher\\CommandFactory::WP_CLI\\Dispatcher\\{closure}(Array, Array)\r\n#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(451): call_user_func(Object(Closure), Array, Array)\r\n#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(371): WP_CLI\\Dispatcher\\Subcommand->invoke(Array, Array, Array)\r\n#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(394): WP_CLI\\Runner->run_command(Array, Array)\r\n#8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1160): WP_CLI\\Runner->run_command_and_exit()\r\n#9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\\Runner->start()\r\n#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\\Bootstrap\\LaunchRunner->process(Object(WP_CLI\\Bootstrap\\BootstrapState))\r\n#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\\bootstrap()\r\n#12 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')\r\n#13 /usr/local/bin/wp(4): include('phar:///usr/loc...')\r\n#14 {main}\r\n  thrown in phar:///usr/local/bin/wp/vendor/wp-cli/shell-command/src/WP_CLI/Shell/REPL.php(32) : eval()'d code on line 1\r\nError: There has been a critical error on this website.Learn more about debugging in WordPress. There has been a critical error on this website.\r\n```\r\n\r\n\r\n\r\n**Describe the solution you'd like**\r\n\r\nPHP's REPL is able to catch fatals and continue running:\r\n\r\n```sh\r\nphp > $foo = 'stuff';\r\nphp > echo $foo;\r\nstuff\r\nphp > require 'foo.txt';\r\n\r\nWarning: require(foo.txt): Failed to open stream: No such file or directory in php shell code on line 1\r\n\r\nWarning: Uncaught Error: Failed opening required 'foo.txt' (include_path='.:/usr/local/Cellar/php/8.0.0_1/share/php/pear') in php shell code:1\r\nStack trace:\r\n#0 {main}\r\n  thrown in php shell code on line 1\r\nphp > echo $foo;\r\nstuff\r\n```\r\n\r\nIs that possible for `wp shell` ?","author":{"url":"https://github.com/iandunn","@type":"Person","name":"iandunn"},"datePublished":"2020-12-05T17:00:31Z","url":"https://github.com/wp-cli/shell-command/issues/50"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:21d9b366-ef40-15dc-981f-ed1c190cfad0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D1C:D23AD:109BC67:160E025:6AFA23FC
html-safe-noncee08e952605680a6bf028183ad66f7d919e832f4a9406b323a14327d5d8560719
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDFDOkQyM0FEOjEwOUJDNjc6MTYwRTAyNTo2QUZBMjNGQyIsInZpc2l0b3JfaWQiOiI1NDQ0NjY1MDM4NjAzOTUzMTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdeaf13cf7df9d0e921796a38af5eb4f9d3c00ff318ae69b3d13ddc45046417c9
hovercard-subject-tagissue:757721006
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/shell-command/50/issue_layout
twitter:imagehttps://opengraph.githubassets.com/280cacdf49540434c3633ce8e889daf3101b43712cb538c5256c15623f20348c/wp-cli/shell-command/issues/50
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/280cacdf49540434c3633ce8e889daf3101b43712cb538c5256c15623f20348c/wp-cli/shell-command/issues/50
og:image:altFeature Request Yes, I reviewed the contribution guidelines. Describe your use case and the problem you are facing Making typos/etc often results in a fatal error, and the session crashes and has t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiandunn
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/wp-cli/shell-command git https://github.com/wp-cli/shell-command.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id85307675
octolytics-dimension-repository_nwowp-cli/shell-command
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id85307675
octolytics-dimension-repository_network_root_nwowp-cli/shell-command
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/wp-cli/shell-command/issues/50#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fshell-command%2Fissues%2F50
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fshell-command%2Fissues%2F50
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wp-cli%2Fshell-command
Reloadhttps://github.com/wp-cli/shell-command/issues/50
Reloadhttps://github.com/wp-cli/shell-command/issues/50
Reloadhttps://github.com/wp-cli/shell-command/issues/50
wp-clihttps://github.com/wp-cli
shell-commandhttps://github.com/wp-cli/shell-command
Codehttps://github.com/wp-cli/shell-command
Issueshttps://github.com/wp-cli/shell-command/issues
Pull requestshttps://github.com/wp-cli/shell-command/pulls
Actionshttps://github.com/wp-cli/shell-command/actions
Security and qualityhttps://github.com/wp-cli/shell-command/security
Insightshttps://github.com/wp-cli/shell-command/pulse
https://github.com/wp-cli/shell-command
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/50
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/50
#83https://github.com/wp-cli/shell-command/pull/83
Catch exceptions to avoid restarting sessionhttps://github.com/wp-cli/shell-command/issues/50#top
#83https://github.com/wp-cli/shell-command/pull/83
https://github.com/swissspidy
https://github.com/copilot-swe-agent
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
https://github.com/iandunn
iandunnhttps://github.com/iandunn
on Dec 5, 2020https://github.com/wp-cli/shell-command/issues/50#issue-757721006
contribution guidelineshttps://make.wordpress.org/cli/handbook/contributing/
https://github.com/iandunn
iandunnhttps://github.com/iandunn
on Dec 5, 2020https://github.com/wp-cli/shell-command/issues/50#issuecomment-739323876
#11https://github.com/wp-cli/shell-command/issues/11
https://github.com/iandunn
iandunnhttps://github.com/iandunn
on Dec 5, 2020https://github.com/wp-cli/shell-command/issues/50#issuecomment-739323998
https://github.com/schlessera
schlesserahttps://github.com/schlessera
on Dec 7, 2020https://github.com/wp-cli/shell-command/issues/50#issuecomment-739805157
danielbachhuberhttps://github.com/danielbachhuber
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
on Nov 29, 2022https://github.com/wp-cli/shell-command/issues/50#event-7911554271
swissspidyhttps://github.com/swissspidy
on Nov 2, 2025https://github.com/wp-cli/shell-command/issues/50#event-20661626975
swissspidyhttps://github.com/swissspidy
Copilothttps://github.com/apps/copilot-swe-agent
swissspidyhttps://github.com/swissspidy
on Feb 4, 2026https://github.com/wp-cli/shell-command/issues/50#event-22533416152
swissspidyhttps://github.com/swissspidy
completedhttps://github.com/wp-cli/shell-command/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#83https://github.com/wp-cli/shell-command/pull/83
on Mar 17, 2026https://github.com/wp-cli/shell-command/issues/50#event-23640335064
Sign up for freehttps://github.com/signup?return_to=https://github.com/wp-cli/shell-command/issues/50
Sign in to commenthttps://github.com/login?return_to=https://github.com/wp-cli/shell-command/issues/50
Copilothttps://github.com/apps/copilot-swe-agent
swissspidyhttps://github.com/swissspidy
command:shellRelated to 'shell' commandhttps://github.com/wp-cli/shell-command/issues?q=state%3Aopen%20label%3A%22command%3Ashell%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.