bottledcode / swytch-framework

The Smart PHP Framework
https://framework.getswytch.com/
MIT License
20 stars 0 forks source link

Error in composer install/update #47

Closed lukeholder closed 1 year ago

lukeholder commented 1 year ago

running composer install with this composer.json:

{
    "name": "change/me",
    "type": "project",
    "require": {
        "bottledcode/swytch-framework": "^0.3.1",
        "monolog/monolog": "^3.3",
        "vlucas/phpdotenv": "^5.5",
        "filp/whoops": "^2.15"
    },
    "require-dev": {
        "pestphp/pest": "^1.22",
        "php": ">=8.2"
    },
    "autoload": {
        "psr-4": {
            "Change\\Me\\": "src/"
        }
    },
    "authors": [
        {
            "name": "You",
            "email": "you@r.awesome"
        }
    ],
    "config": {
        "allow-plugins": {
            "olvlvl/composer-attribute-collector": true,
            "pestphp/pest-plugin": true
        }
    }
}
Generating attributes file

In MemoizeClassMapGenerator.php line 97:

  [Error]                                                         
  Class "Composer\ClassMapGenerator\ClassMapGenerator" not found  

Exception trace:
  at /Users/luke/Code/Php/swytch/chat/vendor/olvlvl/composer-attribute-collector/src/MemoizeClassMapGenerator.php:97
 olvlvl\ComposerAttributeCollector\MemoizeClassMapGenerator->scanPaths() at /Users/luke/Code/Php/swytch/chat/vendor/olvlvl/composer-attribute-collector/src/ClassMapBuilder.php:53
 olvlvl\ComposerAttributeCollector\ClassMapBuilder->buildClassMap() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(273) : eval()'d code:115
 olvlvl\ComposerAttributeCollector\Plugin_composer_tmp0::dump() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(273) : eval()'d code:90
 olvlvl\ComposerAttributeCollector\Plugin_composer_tmp0::onPostAutoloadDump() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:202
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:125
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:431
 Composer\Autoload\AutoloadGenerator->dump() at phar:///usr/local/bin/composer/src/Composer/Installer.php:341
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:241
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1024
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:335
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:88
 require() at /usr/local/bin/composer:29
lukeholder commented 1 year ago

running composer in wrong env (outsite docker)