knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.58k stars 280 forks source link

Issue On Installing with Laravel 10 #807

Closed koolscripts closed 4 months ago

koolscripts commented 4 months ago

Scribe version

Latest

PHP version

8.2.12

Framework

Laravel

Framework version

10.43.0

Scribe config

composer require knuckleswtf/scribe

Problem 1
    - knuckleswtf/scribe 4.30.0 requires shalvah/upgrader ^0.3.0 -> satisfiable by shalvah/upgrader[0.3.0, 0.3.1].
    - knuckleswtf/scribe[1.0.0, ..., 1.6.0] require illuminate/console ^5.8|^6.0|^7.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe 1.7.0 requires illuminate/console ^5.8|^6.0|^7.0|^8.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[1.8.0, ..., 1.9.1] require illuminate/console 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[2.0.0, ..., 2.7.10, 3.0.0, ..., 3.21.0] require illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[3.22.0, ..., 3.37.2] require illuminate/console ^6.0|^7.0|^8.0|^9.0 -> found illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[4.0.0, ..., 4.13.0] require illuminate/console ^8.0|^9.0 -> found illuminate/console[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[4.14.0, ..., 4.29.0] require nikic/php-parser ^4.10 -> found nikic/php-parser[v4.10.0, ..., v4.18.0] but the package is fixed to v5.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.
    - shalvah/upgrader 0.3.0 requires illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - shalvah/upgrader 0.3.1 requires nikic/php-parser ^4.13 -> found nikic/php-parser[v4.13.0, ..., v4.18.0] but the package is fixed to v5.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 knuckleswtf/scribe * -> satisfiable by knuckleswtf/scribe[1.0.0, ..., 1.9.1, 2.0.0, ..., 2.7.10, 3.0.0, ..., 3.37.2, 4.0.0, ..., 4.30.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 knuckleswtf/scribe:*" to figure out if any version is installable, or "composer require knuckleswtf/scribe:^2.1" if you know which you need.

What happened?

Please advise the issue I'm using latest version of Laravel but the installation cannot continue. Thanks.

Monosnap Command Shell 2024-02-13 23 44 16

Docs

electronick86 commented 4 months ago

Hello, I'm facing exactly the same issue with Laravel 10.42 using php 8.2.15

Epitaffio commented 4 months ago

Same

shalvah commented 4 months ago

Try now. Issue was with https://github.com/shalvah/upgrader/

koolscripts commented 4 months ago

What is the process @Epitaffio because I can't install the scribe, so how to use this package https://github.com/shalvah/upgrader/ ?

electronick86 commented 4 months ago

Hello.

I did a composer update then try to install but I got the same problem :


 Problem 1
    - knuckleswtf/scribe 4.30.0 requires shalvah/upgrader ^0.3.0 -> satisfiable by shalvah/upgrader[0.3.0, 0.3.1].
    - knuckleswtf/scribe[1.0.0, ..., 1.6.0] require illuminate/console ^5.8|^6.0|^7.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe 1.7.0 requires illuminate/console ^5.8|^6.0|^7.0|^8.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[1.8.0, ..., 1.9.1] require illuminate/console 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/console[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[2.0.0, ..., 2.7.10, 3.0.0, ..., 3.21.0] require illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[3.22.0, ..., 3.37.2] require illuminate/console ^6.0|^7.0|^8.0|^9.0 -> found illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[4.0.0, ..., 4.13.0] require illuminate/console ^8.0|^9.0 -> found illuminate/console[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - knuckleswtf/scribe[4.14.0, ..., 4.29.0] require nikic/php-parser ^4.10 -> found nikic/php-parser[v4.10.0, ..., v4.18.0] but the package is fixed to v5.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.
    - shalvah/upgrader 0.3.0 requires illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - shalvah/upgrader 0.3.1 requires nikic/php-parser ^4.13 -> found nikic/php-parser[v4.13.0, ..., v4.18.0] but the package is fixed to v5.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 knuckleswtf/scribe * -> satisfiable by knuckleswtf/scribe[1.0.0, ..., 1.9.1, 2.0.0, ..., 2.7.10, 3.0.0, ..., 3.37.2, 4.0.0, ..., 4.30.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 knuckleswtf/scribe:*" to figure out if any version is installable, or "composer require knuckleswtf/scribe:^2.1" if you know which you need.
Epitaffio commented 4 months ago

Again, same here.

@shalvah please reopen

joshluongo commented 4 months ago

I submitted a pull request that bumps the upgrader package to 0.4.0 which fixes the issues with the Laravel version constraint.

gabrielrbarbosa commented 4 months ago

Still cant install because of illuminate/routing package:

nusrym commented 4 months ago

Installing after the merge fixed the issue. PHP Version 8.2.12 Laravel 10.10

shalvah commented 4 months ago

Thanks everyone. It should be fixed now. v4.32.0 has been released with support for php-parser v5; if that doesn't work for you, try v4.31.0 which supports v4.