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

Deprecation notice for Gacela\Framework\AbstractDependencyProvider #4

Closed
jasalt opened this issue Aug 18, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jasalt
Copy link

jasalt commented Aug 18, 2024

Following readme I ran composer run:dev and get following notice on top of page:

[2024-08-18T14:39:20+00:00] Error Unknown(4437) found! message: "Since gacela-project/gacela 1.8: `Gacela\Framework\AbstractDependencyProvider` is deprecated and will be removed in version 2.0. Use `Gacela\Framework\AbstractProvider` instead. Where? Check your module `Command`" file: /home/user/dev/phel-test/example-app/vendor/symfony/deprecation-contracts/function.php:25 context: {"errno":16384} [2024-08-18T14:39:20+00:00] Error Unknown(4437) found! message: "Since gacela-project/gacela 1.8: `Gacela\Framework\AbstractDependencyProvider` is deprecated and will be removed in version 2.0. Use `Gacela\Framework\AbstractProvider` instead. Where? Check your module `Build`" file: /home/user/dev/phel-test/example-app/vendor/symfony/deprecation-contracts/function.php:25 context: {"errno":16384} [2024-08-18T14:39:20+00:00] Error Unknown(4437) found! message: "Since gacela-project/gacela 1.8: `Gacela\Framework\AbstractDependencyProvider` is deprecated and will be removed in version 2.0. Use `Gacela\Framework\AbstractProvider` instead. Where? Check your module `Compiler`" file: /home/user/dev/phel-test/example-app/vendor/symfony/deprecation-contracts/function.php:25 context: {"errno":16384}

Otherwise seems to work ok. PHP 8.2.20 running locally on Debian 12.

@Chemaclass
Copy link
Member

Chemaclass commented Aug 18, 2024

Yeah, this is a deprecation notice by gacela 1.8 that I released yesterday. I plan to upgrade this project (and others) to dismiss this message. Thanks for the reminder

@Chemaclass
Copy link
Member

@jasalt please try again. I released a new minor version for phel with some fixes and upgrading gacela to get rid of the warning that you shared https://github.com/phel-lang/phel-lang/releases/tag/v0.15.2
If you get another error, try removing the cache (data/.cache/gacela-*).

You can safely remove these files. They are autogenerated by gacela to speed up the class resolver. They might be pointing to the old files, that might be a cause for error.

Screenshot 2024-08-19 at 21 02 05

@Chemaclass Chemaclass self-assigned this Aug 19, 2024
@Chemaclass Chemaclass added the bug Something isn't working label Aug 19, 2024
@jasalt
Copy link
Author

jasalt commented Aug 20, 2024

Great, it works. With another project https://github.com/jasalt/phel-wp-plugin, I had also another error after composer update:

PHP Fatal error:  Uncaught TypeError: Gacela\Framework\ClassResolver\AbstractClassResolver::createInstance(): Return value must be of type object, null returned in /srv/www/wordpress-one/public_html/wp-content/pl
ugins/phel-wp-plugin/vendor/gacela-project/gacela/src/Framework/ClassResolver/AbstractClassResolver.php:151

This was fixed by removing the cached files.

@jasalt jasalt closed this as completed Aug 20, 2024
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