question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tinker keeps running in background

See original GitHub issue

Bug description When running a thinker script the process keeps running even after all code has been executed.

To Reproduce Run tinker without exit() or die()

Expected behavior Tinker should exit with message *** Execution finished *** after all code has been executed.

Screenshots tinker

Environment (please complete the following information):

  • IDE & Version: PHPStorm 2020.2.4
  • PHP Version: 8.1
  • OS: macOS 11.6
  • Laravel Tinker plugin version : 2.3.3
  • Interpreter Type: Remote
  • Laravel Version: 8.83.12
  • Tinker version: 2.7.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Roboroadscommented, Jun 8, 2022

That just kills the output entirely, reverting 😛

0reactions
Roboroadscommented, Jun 8, 2022

Fix is ready - will be released in 2.3.4

Workarounded by just adding an exit() to the php code. Psysh is begin a not nice product when working with it like I do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Tkinter-based app keeps running in the background if ...
What I would do is add something that checks the state of the window and exit the app when it's closed. while app_is_running:...
Read more >
Do Not Use Laravel Tinker in Production | Aaron Saray
I'll say it again: do not install Laravel Tinker in production, and certainly do not use it. It's a great...
Read more >
How to stop Reflect from running in the background?
I'm in Windows 10. I went to Task Manager's tab "Startup" and found an entry for "Macrium Reflect UI Watcher". I disabled it...
Read more >
The ultimate guide to php artisan tinker - Tinkerwell
The tinker command is built into every Laravel application and you can use it to run code within the context of your application....
Read more >
Background tasks issue - Apple Community
... and it appears that the background tasks are not running correctly. ... So I will just tinker and learn and play till...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found