rollbar / rollbar-php-laravel

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

Can't install last version 8.0 ... no package #153

Closed adantart closed 1 year ago

adantart commented 1 year ago

How can I install this package ? There's no package from composer.

I've tried installing this one

composer require rollbar/rollbar-laravel

as shown in https://docs.rollbar.com/docs/laravel

but it's not working. It does not register any service.

It installs the v.1.3.2

Then I tried to force it:

composer require rollbar/rollbar-laravel:v8.0.0

but I got this:

./composer.json has been updated
Running composer update rollbar/rollbar-laravel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires rollbar/rollbar-laravel v8.0.0 -> satisfiable by rollbar/rollbar-laravel[v8.0.0].
    - rollbar/rollbar-laravel v8.0.0 requires illuminate/support ^10.0 -> found illuminate/support[v10.0.0, ..., 10.x-dev] but these were not loaded, likely because it conflicts with another require.

Any idea ? :-(

ghost commented 1 year ago

Hey @adantart, Thanks for reporting this issue. Let me discuss it with the dev team, and I'll get back to you if I find something out.

danielmorell commented 1 year ago

Try running...

composer why illuminate/support

You could have a locked version of something that requires Laravel 9? Running why should reveal if that is the case.

You could also try running...

composer require rollbar/rollbar-laravel:v8.0.0 -W

...to force the updating of the dependencies of rollbar/rollbar-laravel.

adantart commented 1 year ago

Sorry for not showing package names:

The "why" command reveals this:

............................. v3.8.1      requires illuminate/support (^9|^10)                                                              
............................. v1.10       requires illuminate/support (~5.5|~6.0|~7.0|~8.0|~9.0|^10.0)                                      
............................. v2.3.0      requires illuminate/support (^5.6|^6.0|^7.0|^8.0|^9.0|^10.0)                                      
............................. v1.4        requires illuminate/support (^6|^7|^8|^9|^10.0)                                                   
............................. v2.2.0      requires illuminate/support (^6|^7|^8|^9)                                                         
............................. 1.9.0       requires illuminate/support (^6.0|^7.0|^8.0|^9.0|^10.0)                                           
............................. v9.0.1      requires illuminate/support (5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0) 
............................. 1.2.0       requires illuminate/support (>=5.5)                                                               
............................. 2.7.3       requires illuminate/support (^6.0|^7.0|^8.0|^9.0|^10.0)                                           
............................. v1.1.4      requires illuminate/support (~5.5 || ~6.0 || ~7.0 || ^8.0 || ^9.0 || ^10.0)                       
............................. 2.1.0       requires illuminate/support (8.45 - 9)                                                            
............................. v14.9.0     requires illuminate/support (^9.21|^10.0)                                                         
............................. v1.16.0     requires illuminate/support (^8.82|^9.0|^10.0)                                                    
............................. v9.50.2     replaces illuminate/support (self.version)                                                        
............................. v2.8.5      requires illuminate/support (^8.37|^9.0)                                                          
............................. v1.21.2     requires illuminate/support (^8.0|^9.0|^10.0)                                                     
............................. v2.15.1     requires illuminate/support (^6.9|^7.0|^8.0|^9.0)                                                 
............................. v5.6.1      requires illuminate/support (^6.0|^7.0|^8.0|^9.0|^10.0)                                           
............................. v2.8.1      requires illuminate/support (^6.0|^7.0|^8.0|^9.0|^10.0)                                           
............................. v6.4.0      requires illuminate/support (^6.0|^7.0|^8.0|^9.0|^10.0)                                           
............................. v2.12.3     requires illuminate/support (^7.0|^8.0|^9.0|^10.0)                                                
............................. 9999999-dev requires illuminate/support (^8.0|^9.0)                                                           
............................. v7.0.1      requires illuminate/support (^9.0)                                                                
............................. 2.14.2      requires illuminate/support (5.0 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0)                               
............................. v3.1.4      requires illuminate/support (^5.1|6.*|7.*|8.*|9.*)                                                
............................. v4.3.0      requires illuminate/support (^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0)                               
............................. 2.2.1       requires illuminate/support (^9.0|^10.0)                                                          
............................. 1.6.4       requires illuminate/support (^8.77|^9.27)                                                         
............................. 1.32.3      requires illuminate/support (^7.20|^8.19|^9.0|^10.0)                                              
............................. 3.1.7       requires illuminate/support (^8.50|^9.0|^10.0)                                                    
............................. 3.4.3       requires illuminate/support (^8.50|^9.0|^10.0)                                                    
............................. v10.3.1     requires illuminate/support (^9|^10)                             

The other one is still responding:

  Problem 1
    - Root composer.json requires rollbar/rollbar-laravel v8.0.0 -> satisfiable by rollbar/rollbar-laravel[v8.0.0].
    - rollbar/rollbar-laravel v8.0.0 requires illuminate/support ^10.0 -> found illuminate/support[v10.0.0, ..., 10.x-dev] but these were not loaded, likely because it conflicts with another require.

THANK YOU in advance

danielmorell commented 1 year ago

So it looks like at least 10 of your dependencies only support illuminate/support up to v9. This is probably the source of the issue.

You can run:

composer update illuminate/support:^10 -W

The -W should update all the dependencies as well, even the root dependencies.

I don't know if this will update versions beyond the version constrains in your composer.json file. So it may not work out of the box. You may need to manually update the versions of multiple packages in your composer.json file before running composer update will be successful.

samuel-lujan commented 1 year ago

The same problem here! For this time I just installed the version 7.2 and it works good!

Ps. Using laravel

"laravel/framework": "^9.19",
danielmorell commented 1 year ago

Version 8 only works with Laravel 10. If you are running Laravel 9 or below you will need one of the previous major versions of this package. Probably version 7.