database icon indicating copy to clipboard operation
database copied to clipboard

🐛 Bug Report: Swoole client error when setting up locally

Open ArnabChatterjee20k opened this issue 2 years ago • 2 comments

👟 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?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

ArnabChatterjee20k avatar Oct 09 '23 10:10 ArnabChatterjee20k

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 🙏

abnegate avatar Nov 15 '23 03:11 abnegate

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.

ArnabChatterjee20k avatar Nov 26 '23 05:11 ArnabChatterjee20k