rollbar / rollbar-php-laravel

Rollbar error monitoring integration for Laravel projects
https://docs.rollbar.com/docs/laravel
140 stars 39 forks source link

Unable to install with Laravel 8.* #122

Closed nocodelab closed 2 years ago

nocodelab commented 2 years ago

Hello, I'm unable to install the package in a specific project based on Laravel 8 (latest release).

It looks the package is not compatibile with psr/log 2.0+

Screenshot 2022-01-17 at 13 06 00

I'm not sure that downgrading psr/log is a good idea. What do you recommend?

xtfer commented 2 years ago

It's not optimal, but it does work downgraded.

gaetan-hexadog commented 2 years ago

same issue when installing on Laravel 9

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - rollbar/rollbar-laravel v7.1.0 requires rollbar/rollbar ^2 -> satisfiable by rollbar/rollbar[v2.0.0, v2.1.0].
    - rollbar/rollbar-laravel v7.1.0-RC1 requires illuminate/support ^6.0|^7.0|^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - rollbar/rollbar[v2.0.0, ..., v2.1.0] require psr/log ^1 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires rollbar/rollbar-laravel ^7.1 -> satisfiable by rollbar/rollbar-laravel[v7.1.0-RC1, v7.1.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require rollbar/rollbar-laravel:*" to figure out if any version is installable, or "composer require rollbar/rollbar-laravel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Why should we downgrade psr/log ?

danielmorell commented 2 years ago

I am working on upgrading rollbar/rollbar-laravel to rollbar/rollbar v3 which already supports psr/log v2. This is my top priority at the moment.

cyrusradfar commented 2 years ago

Thank you @danielmorell

danielmorell commented 2 years ago

This should be resolved with the release of v7.2.