laravel-tinker icon indicating copy to clipboard operation
laravel-tinker copied to clipboard

[Bug]: No Output / Output vanishes with Version 2.7.3

Open baxt1yor opened this issue 1 year ago • 8 comments

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?

  1. Open Tinker Console and dd something

Expected behavior

Output shown in result window

Screenshots

image

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

baxt1yor avatar Jul 04 '24 04:07 baxt1yor

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

Roboroads avatar Jul 16 '24 19:07 Roboroads

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 image

I need a way to reproduce the issue to fix it, as you know as co-developer, so I need more information here :)

Roboroads avatar Jul 16 '24 19:07 Roboroads

I have the same problem here: image

hesammoosapour avatar Jul 22 '24 07:07 hesammoosapour

My colleague also has this issue: image

hesammoosapour avatar Jul 22 '24 14:07 hesammoosapour

@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

Roboroads avatar Jul 24 '24 16:07 Roboroads

It doesn't make any difference for me, same result! But If I do the same thing in a terminal, I get appropriate results!

hesammoosapour avatar Jul 27 '24 06:07 hesammoosapour

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.

hesammoosapour avatar Jul 29 '24 06:07 hesammoosapour

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!

stale[bot] avatar Sep 28 '24 05:09 stale[bot]

Closing this issue after 90 days of no activity. You may reopen this issue if it's still a think to be looked at!

stale[bot] avatar Oct 28 '24 23:10 stale[bot]

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.

pindab0ter avatar Jul 03 '25 14:07 pindab0ter