Wulfheart / laravel-actions-ide-helper

MIT License
18 stars 26 forks source link

Class "Composer\Autoload\ClassMapGenerator" not found #7

Closed renepardon closed 8 months ago

renepardon commented 2 years ago

I have the same problem and found this issue before: https://github.com/barryvdh/laravel-ide-helper/issues/709

Class "Composer\Autoload\ClassMapGenerator" not found

  at vendor/wulfheart/laravel-actions-ide-helper/src/Commands/LaravelActionsIdeHelperCommand.php:38
     34▕             ->files()
     35▕             ->in(app_path())
     36▕             ->name('*.php');
     37▕ 
  ➜  38▕         $map = collect(ClassMapGenerator::createMap($finder->getIterator()));
     39▕         // dd($map);
     40▕         $classes = $map->keys();
PHP 8.1.1 (cli) (built: Dec 31 2021 07:26:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.1, Copyright (c), by Zend Technologies
"lorisleiva/laravel-actions": "^2.2",
"wulfheart/laravel-actions-ide-helper": "^0.1.0"

I tried already a composer update but without any changes.

Wulfheart commented 2 years ago

Did you try deleting the vendor folder?

renepardon commented 2 years ago

Did you try deleting the vendor folder?

Hi @Wulfheart yes, without success.

Wulfheart commented 2 years ago

Hm. I currently don't have the mental space to tackle this issue due to the exam period. Either you take a look at it and open a PR or you wait until mid of February when I have the time to take a look at it. ☺️

abobus-2288 commented 1 year ago

There's still an issue in 2023. Just installed the library, but i can't use it because of this problem I use version 1.0, and i this is the code that was installed by composer: use Composer\Autoload\ClassMapGenerator;

Wulfheart commented 1 year ago

Could you please try to debug it and PR it?

abobus-2288 commented 1 year ago

I just made all changes from this PR. Idk why composer installed the library without these changes. I used version 1 beta

Wulfheart commented 1 year ago

Wait. @abobus-2288 which version do you use? Please send the composer.json and the composer.lock.

Wulfheart commented 8 months ago

This project is in YOLO-mode now. Please feel free to re-open if you think it still applies.