dantleech

Results 874 comments of dantleech

Hm, can you debug to find out where it is getting stuck? My guess would be where it reads the events in App.php

my guess is it's an infinite loop [here](https://github.com/php-tui/php-tui/blob/fdbe4387e946664c6f7967351733d204c97c8461/example/demo/src/App.php#L142) because [stream reader](https://github.com/php-tui/term/blob/816db08045b45d04e3ef8e20b12cebd962b0ca92/src/Reader/StreamReader.php#L30-L32) is NOT returning NULL. Can you check what the value of `$bytes` is in the infinite loop? If it's...

can you try `composer update` to 0.3.3 ?

either `stream_get_contents` is blocking, or it is an infinite loop. If it's an infinite loop can you see what the value of `$bytes` is in that infinite loop?

i guess it only prints that _once_ ? can you see where the infinite loop happens (where that would be printed infinitely?) is it stuck in [this loop](https://github.com/php-tui/php-tui/blob/fdbe4387e946664c6f7967351733d204c97c8461/example/demo/src/App.php#L142) ? or...

Ok so you're using Swoole or similar?

i'm not sure i can help further without a reproducing repository / with docker or nix flake, as from the output above it does seem related to the async extension

fwiw the `$app = app()` should have been fixed in #2704

and for the record the other seems possibly specific to functions as we possibly don't expand the template vars as we do with methods: https://github.com/phpactor/phpactor/blob/7164655e55d490c3c402d35e392364330e69bd6f/lib/WorseReflection/Core/Inference/Resolver/MemberAccess/NodeContextFromMemberAccess.php#L331