laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Bug with Lumen 6 and Ide-Helper 2.8

Open andrew-svirin opened this issue 5 years ago • 5 comments

$ php artisan ide-helper:generate

In IdeHelperServiceProvider.php line 119:

Class 'Illuminate\Foundation\Application' not found

andrew-svirin avatar Sep 25 '20 11:09 andrew-svirin

Duplicate of https://github.com/barryvdh/laravel-ide-helper/issues/1042 and https://github.com/barryvdh/laravel-ide-helper/issues/1064 and fixed with https://github.com/barryvdh/laravel-ide-helper/pull/1043 , though no release was made yet.

@barryvdh do you think you can make a new release?

@andrew-svirin until then, you can use 2.8-dev as a workaround

mfn avatar Sep 25 '20 18:09 mfn

@mfn thanks for reply, will do.

andrew-svirin avatar Sep 28 '20 07:09 andrew-svirin

Any news on release? Currently using 2.8.x-dev as workaround.

tezhm avatar Oct 15 '20 00:10 tezhm

We would need @barryvdh to cut a new release, friendly ping!

mfn avatar Oct 15 '20 05:10 mfn

Ok, this is still broken and I've worked out why.

Barryvdh\LaravelIdeHelper\Console\MetaCommand registers a throw against the autoloader, and then tries to unregister it by assuming it is the last closure registered. Thus, if anything else registers against the autoloader before the unregister is called, the wrong closure gets unregistered and the call to class_exists will attempt to build class from registered autoloaders which in turn calls the throw.

image

image

image

image

image

tezhm avatar Apr 09 '21 03:04 tezhm

Hey 👋🏼 whilst integration in Lumen might still work, due to decline in usage of Lumen and better alternatives like Laravel Octane, Lumen is not officially supported anymore (the state of affairs where never really great, to begin with)

mfn avatar Feb 20 '23 15:02 mfn