Closed MatanYadaev closed 2 years ago
The issue isn't fixed by setting up the env variable RAY_ENABLED
to false
, but it does get fixed when I comment out QueryWatcher
and DuplicateQueryWatcher
from the $watchers
array in the source code.
I run into the same issue after commenting out the QueryWatcher and DuplicateQueryWatcher from the $watchers, it does work. I guess need a new version.
@MatanYadaev or @yahya077 Do you have a small sample repository that replicates this issue exactly? It'd help me track down the source of the issue more quickly.
@patinthehat The reproduction guide that I mentioned doesn't work? It works to me
I don't directly using ray. It is requirements of Spatie packages.
#15 spatie/laravel-ray/src/Watchers/QueryWatcher.php(46): Illuminate\\Support\\Facades\\Facade::__callStatic('listen', Array)
#16 spatie/laravel-ray/src/RayServiceProvider.php(167): Spatie\\LaravelRay\\Watchers\\QueryWatcher->register()
EnumeratesValues.php(242): Spatie\\LaravelRay\\RayServiceProvider->Spatie\\LaravelRay\\{closure}('Spatie\\\\LaravelR...', 6)
End of the error down below;
test.ERROR: could not find driver {"exception":"[object] (Doctrine\\DBAL\\Driver\\PDO\\Exception
This issue might has been fixed. The issue no longer exist for me.
I know this issue is closed but just want to highlight I also get this error when reinstalling my docker instance using laravel sail
spatie/laravel-ray: 1.29.4
> @php artisan package:discover --ansi
PDOException
could not find driver
at vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
66▕ if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
67▕ return new PDOConnection($dsn, $username, $password, $options);
68▕ }
69▕
➜ 70▕ return new PDO($dsn, $username, $password, $options);
71▕ }
72▕
73▕ /**
74▕ * Determine if the connection is persistent.
+29 vendor frames
30 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Spatie\LaravelRay\RayServiceProvider))
+5 vendor frames
36 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1```
Describe the bug Using Laravel Sail, when
spatie/laravel-ray
is in the dependencies,composer install
command fails. More specifically, thephp artisan package:discover
command fails.Versions
spatie/ray
: 1.32.2spatie/laravel-ray
: 1.27.2To Reproduce Steps to reproduce the behavior:
curl -s "https://laravel.build/example-app?with=mysql,redis" | bash
"spatie/laravel-ray": "^1.9"
to thecomposer.json
Desktop: