phpunit-watcher icon indicating copy to clipboard operation
phpunit-watcher copied to clipboard

Timeout - PHP 8.1 and Composer 2.1.9

Open AdrianHL opened this issue 3 years ago • 1 comments

First of all, nice package and thanks for offering this to the community.

I have tried to use this in one of our projects and I'm getting a timeout. I have tried to include the bits required in composer to avoid this issue but it is still happening.

/var/www/html # composer test:watch
> Composer\Config::disableProcessTimeout
> phpunit-watcher watch < /dev/tty


PHPUnit Watcher
===============

 PHPUnit Watcher 1.23.2 by Spatie and contributors.

 No config file detected. Using default options.

 Tests will be rerun when *.php files are modified in
 * /var/www/html/src
 * /var/www/html/tests


PHPUnit 9.5.20 #StandWithUkraine

..........................
In Process.php line 1152:
                                                                             
  The process "'vendor/bin/phpunit' """ exceeded the timeout of 60 seconds.  
                                                                             

watch [<phpunit-options>]

Script phpunit-watcher watch < /dev/tty handling the test:watch event returned with error code 1

I have these bits in my composer.json:

        "test:watch": [
            "Composer\\Config::disableProcessTimeout",
            "phpunit-watcher watch < /dev/tty"
        ],

and

    "config": {
        "process-timeout": 0,

By the way the version in the console output does not match.

Any idea or support is more than welcome.

Thanks in advance.

AdrianHL avatar Jul 08 '22 12:07 AdrianHL

I'm also seeing this with PHP 8.0.22 and Composer 2.3.10, though it doesn't matter if I run it via composer or not.

OldStarchy avatar Sep 09 '22 02:09 OldStarchy

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Jan 10 '23 11:01 spatie-bot