laravel-tinker
laravel-tinker copied to clipboard
[Bug]: No Output / Output vanishes with Version 2.7.3
Short bug description
laravel tinker version 2.7.3 my console doesn’t shows any output
Extended bug description
After updating, my console shows output for a fraction of a second and after that the only output shown is:
// Laravel Tinker started at 2024-07-04 09:40:59 *** Execution finished ***
Your project is not the problem
- [X] I tried using a fresh laravel install - I'm fairly certain it has nothing to do with my project.
How to reproduce?
- Open Tinker Console and dd something
Expected behavior
Output shown in result window
Screenshots
IDE & Version
PHPStorm 2024.1.4
PHP Version
8.0
OS and version
Windows 10
Laravel Tinker plugin version
2.7.3
Interpreter type
Local
Laravel Version
8.0
Tinker version
2.5
Psysh version
^0.11.1|^0.12.0
Additional Context
No response
Could you give me exact versions? As tinker 2.5 is not valid for psysh ^0.11.1 and laravel 8.0 does not work with PHP 8.0
I just tested this on the following environment - guessing you copied the versions from composer.json and not the actual installed versions:
- Windows 10
- PHPStorm 2024.1.4
- PHP 8.0.0 (local interpreter)
- Laravel v8.83.27
- Tinker plugin v2.7.3
- laravel/tinker v2.9.0
- psy/psysh v0.12.4
And I have zero issues
I need a way to reproduce the issue to fix it, as you know as co-developer, so I need more information here :)
I have the same problem here:
My colleague also has this issue:
@hesammoosapour for your first one, don't return or print. Do it like you would with Tinker:
<?php
\App\Models\User::all();
Then for the second one, that's an interpreter issue. Please check the FAQ
It doesn't make any difference for me, same result! But If I do the same thing in a terminal, I get appropriate results!
I found the solution, my PHPStorm PHP Interpreter was set on a only pure PHP installed, once I changed it to xampp version that has other libraries etc, now it is working, thanks.
This issue has been automatically marked as stale because it has not had recent activity. This means this issue is resolved or nobody else has had this issue or feature request. It will be closed if no further activity occurs within 30 days, so if this is still relevant, please let us know!
Closing this issue after 90 days of no activity. You may reopen this issue if it's still a think to be looked at!
I found the solution, my PHPStorm PHP Interpreter was set on a only pure PHP installed, once I changed it to xampp version that has other libraries etc, now it is working, thanks.
This helped for me when I didn't get any errors to display.