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

Can not install laravel-ide-helper on Laravel 10.4.1 #1430

Closed
masterwto opened this issue Mar 20, 2023 · 3 comments
Closed

Can not install laravel-ide-helper on Laravel 10.4.1 #1430

masterwto opened this issue Mar 20, 2023 · 3 comments
Labels

Comments

@masterwto
Copy link

Versions:

  • ide-helper Version: 2.12.3
  • Laravel Version: 10.4.1
  • PHP Version: 8.1.3

Description:

I have a new empty laravel project and want to install laravel-ie-helper:

composer require barryvdh/laravel-ide-helper --dev

and it reports:

Using version ^2.12 for barryvdh/laravel-ide-helper
./composer.json has been updated
Running composer update barryvdh/laravel-ide-helper
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - barryvdh/laravel-ide-helper[v2.12.0, ..., v2.12.3] require illuminate/console ^8 || ^9 -> found illuminate/console[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
    - barryvdh/laravel-ide-helper v2.12.2 requires composer/pcre ^1.0 -> found composer/pcre[1.0.0, 1.0.1] but the package is fixed to 3.0.2 (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 barryvdh/laravel-ide-helper ^2.12 -> satisfiable by barryvdh/laravel-ide-helper[v2.12.0, v2.12.1, v2.12.2, v2.12.3].

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 barryvdh/laravel-ide-helper:*" to figure out if any version is installable, or "composer require barryvdh/laravel-ide-helper:^2.1" if you know which you need.

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

Steps To Reproduce:

composer require barryvdh/laravel-ide-helper --dev
@masterwto masterwto added the bug label Mar 20, 2023
@mfn
Copy link
Collaborator

mfn commented Mar 20, 2023

This is weird:

barryvdh/laravel-ide-helper v2.12.2 requires composer/pcre ^1.0 -> found composer/pcre[1.0.0, 1.0.1] but the package is fixed to 3.0.2 (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.

But laravel-ide-helper itself does not use composer/pcre. https://github.com/composer/class-map-generator/blob/main/composer.json however does, but on a v2/v3 which you match your lockfile…

Did you try the suggested hint with --with-all-dependencies? Just curious if it works.

@kaeland
Copy link

kaeland commented Sep 15, 2023

After updating Composer itself with:

php composer.phar self-update

I then ran:

composer require --dev barryvdh/laravel-ide-helper --with-all-dependencies

to fix the issue.

@mfn
Copy link
Collaborator

mfn commented Sep 15, 2023

Closing, as OP never came back

@mfn mfn closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants