Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Swoole client error when setting up locally #336

Open
2 tasks done
ArnabChatterjee20k opened this issue Oct 9, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@ArnabChatterjee20k
Copy link

👟 Reproduction steps

When I am installing the module for local development, I am getting the issue swoole coroutine client not found despite the the fact it has been installed and present in the vendor
Tried with Utopia-php/swoole as well
Any steps I am missing or is it a bug in the code?

👍 Expected behavior

No error

👎 Actual Behavior

Getting error

🎲 Utopia Database version

Version 0.10.x

🐘 PHP Version

PHP 8.0.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@abnegate
Copy link
Member

Hi @ArnabChatterjee20k, do you have the Swoole extension installed? Are you using Docker to manage your dev environment? Please share your setup code as well if you can 🙏

@ArnabChatterjee20k
Copy link
Author

The problem here is that the docker compose is having the swoole client setupped. But when we are not using docker then we need to install it locally. But composer which is the package manager here does not support swoole.
We need to install it via https://github.com/swoole/swoole-src#compiling-requirements and pecl is a good option here

But where the misunderstanding is coming? In the project, an extension for swoole is already present but it only provides the autocompletion feature for the code editor.

Shall I make a pr updating the local setup docs? I spent 3days and successfully setuped swoole as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants