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

Issue running ide-helper:generate with Lumen v6.3.5 as a Composer post-update-cmd #1064

Closed
drew887 opened this issue Sep 18, 2020 · 2 comments

Comments

@drew887
Copy link

drew887 commented Sep 18, 2020

Versions:

  • ide-helper Version: 2.8.1
  • Lumen Version: v6.3.5
  • PHP Version: 7.4

Description:

Using above version of lumen with 2.8.1 of ide-helper causes the following issue when running composer update:

Writing lock file
Generating optimized autoload files
> @php artisan ide-helper:generate
[2020-09-18 19:24:50] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Illuminate\Foundation\Application' not found in /vendor/barryvdh/laravel-ide-helper/src/IdeHelperServiceProvider.php:119

*** ALL OF THIS REMOVED FOR BREVITY ***


In IdeHelperServiceProvider.php line 119:

  Class 'Illuminate\Foundation\Application' not found

relevant section from composer.json

        "post-update-cmd": [
            "@php artisan ide-helper:generate",
            "@php artisan ide-helper:meta"
        ],

Just a rough guess #1026 is related in some way? its commit message

TL;DR: can't use anything in the `Illuminate\Foundation` namespace
without safety check, as it doesn't exist in Lumen.

Seems to indicate this issue.

If I roll back to 2.8.0 everything works as expected again.

Steps To Reproduce:

Simply running composer update with the above post-update-cmd config for composer

@drew887 drew887 added the bug label Sep 18, 2020
@drew887 drew887 changed the title Issue running with Lumen Issue running ide-helper:generate with Lumen v6.3.5 as a Composer post-update-cmd Sep 18, 2020
@mfn mfn added the lumen label Sep 18, 2020
@mfn
Copy link
Collaborator

mfn commented Sep 18, 2020

Duplicate of #1042

PR with fix was been merged #1043 but unfortunately we've to wait for a new release

ping @barryvdh

@drew887
Copy link
Author

drew887 commented Sep 18, 2020

Ah sorry, I thought I did a quick search but I guess i missed checking for closed issues sorry, I'll go ahead and close this one as well. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants