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.

[Bug]: output gets printed twice

See original GitHub issue

Short bug description

the output always gets printed twice

Extended bug description

it looks like it has something to do with the latest changes to version 2.5.0

How to reproduce?

function test()
{
    return 'test';
}
return test();

Expected behavior

see output only once

Screenshots

image

IDE & Version

phpstorm 2022.3

PHP Version

8.1

OS and version

Linux

Laravel Tinker plugin version

2.5.0

Interpreter type

{“label”=>“Docker (NOT compose)”}

Laravel Version

9

Tinker version

2.5.0

Psysh version

v0.11.9

Additional Context

No response

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Roboroadscommented, Dec 16, 2022

Same, haha, but I got you another build to test something. This will tell me if it’s in the plugins kotlin code orsomewhere in PHP.

Laravel Tinker-2.5.1+1.zip

I added some <%> to the output. the amount of them will tell me a lot.

Good night, I’m also hitting the sack, talk to you later 😃

1reaction
Roboroadscommented, Dec 16, 2022

I’ll make a build for you to test something. One sec

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does this print the output twice?? - Codecademy
The double print has to do with some internal test. When the script is right it prints only 25. It used to print...
Read more >
Why the line is printed twice? - Stack Overflow
I dont understand why its getting printed twice. I found this code at many places on the net but could not get something...
Read more >
Statement is being printed twice | Sololearn: Learn to code for ...
The code takes input and if you guess correctly asks you if want to play again. The bug I'm facing is the prompt...
Read more >
Python commands are printed twice in the output channel #7160
Some Python commands (for example linting or formatting) are displayed twice. Steps to reproduce: Start debugging the extension; Open a python ...
Read more >
Functions print outputs twice the expected output
This is because of the way you evaluated the expression, interactively. If you used something like M-: to evaluate it, that command prints...
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