Laravel-Lang / common

Easily connect the necessary language packs to the application
https://laravel-lang.com/packages-common.html
MIT License
98 stars 10 forks source link

[Bug]: Segmentation Fault after composer update from 6.3 to 6.4 #198

Closed bedoz closed 4 weeks ago

bedoz commented 3 months ago

Lang Package Name

laravel-lang/common

Lang Package Version

6.4.0

Laravel Framework Version

10.48.15

PHP Version

8.1.18

Dependencies

"require": { "php": "^8.1", "backpack/crud": "^6.0", "backpack/filemanager": "^3.0", "backpack/logmanager": "^5.0", "backpack/permissionmanager": "^7.0", "backpack/pro": "^2.0", "backpack/revise-operation": "^2.0", "backpack/settings": "^3.1", "backpack/theme-coreuiv2": "^1.1", "barryvdh/laravel-dompdf": "^2.0", "cviebrock/eloquent-sluggable": "^10.0", "google/recaptcha": "^1.3", "guzzlehttp/guzzle": "^7.2", "laravel/fortify": "^1.17", "laravel/framework": "^10.10", "laravel/passport": "^v11.8.7", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "livewire/livewire": "^3.4", "maatwebsite/excel": "^3.1", "mapo/backpack-editorjs-field": "dev-main", "mapo/laravel-backpack-menu": "dev-multidomain", "mapo/laravel-backpack-translation-manager": "dev-Laravel-10", "mapo/laravel-multisite-on-folders": "dev-redirect-feature", "mapo/model-translation-sheet": "dev-Laravel-10", "mapo/qr-code-manager": "dev-Laravel-10", "mapo/seo-tools": "dev-multi-domain", "opcodesio/log-viewer": "^3.6", "opensearch-project/opensearch-php": "*", "ziming/json-field-for-backpack": "^1.1" }, "require-dev": { "backpack/generators": "^v4.0", "barryvdh/laravel-debugbar": "^3.8", "deployer/deployer": "^7.3", "fakerphp/faker": "^1.9.1", "jeroen-g/laravel-packager": "^2.9", "laravel-lang/common": "^6.3", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.1", "spatie/laravel-ignition": "^2.0" },

Issue description

After composer update the php artisan discover package post deploy script fail with error 193. The manual command discovery package give a segmentation fault on unix system

Steps to reproduce

composer update

andrey-helldar commented 3 months ago

I was unable to install some dependencies due to their absence from the Packagist repository:

composer update ```bash $ composer update Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires backpack/pro, it could not be found in any version, there may be a typo in the package name. Problem 2 - Root composer.json requires mapo/backpack-editorjs-field, it could not be found in any version, there may be a typo in the package name. Problem 3 - Root composer.json requires mapo/laravel-backpack-menu, it could not be found in any version, there may be a typo in the package name. Problem 4 - Root composer.json requires mapo/laravel-backpack-translation-manager, it could not be found in any version, there may be a typo in the package name. Problem 5 - Root composer.json requires mapo/laravel-multisite-on-folders, it could not be found in any version, there may be a typo in the package name. Problem 6 - Root composer.json requires mapo/model-translation-sheet, it could not be found in any version, there may be a typo in the package name. Problem 7 - Root composer.json requires mapo/qr-code-manager, it could not be found in any version, there may be a typo in the package name. Problem 8 - Root composer.json requires mapo/seo-tools, it could not be found in any version, there may be a typo in the package name. ```

So I removed them from the composer.json file.

`composer.json` file ```json { "name": "laravel/laravel", "description": "The skeleton application for the Laravel framework.", "license": "MIT", "type": "project", "keywords": [ "laravel", "framework" ], "require": { "php": "^8.1", "barryvdh/laravel-dompdf": "^2.0", "cviebrock/eloquent-sluggable": "^10.0", "google/recaptcha": "^1.3", "guzzlehttp/guzzle": "^7.2", "laravel/fortify": "^1.17", "laravel/framework": "^10.10", "laravel/passport": "^11.8.7", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "livewire/livewire": "^3.4", "maatwebsite/excel": "^3.1", "opcodesio/log-viewer": "^3.6", "opensearch-project/opensearch-php": "*", "ziming/json-field-for-backpack": "^1.1" }, "require-dev": { "backpack/generators": "^4.0", "barryvdh/laravel-debugbar": "^3.8", "deployer/deployer": "^7.3", "fakerphp/faker": "^1.9.1", "jeroen-g/laravel-packager": "^2.9", "laravel-lang/common": "^6.3", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.1", "spatie/laravel-ignition": "^2.0" }, "minimum-stability": "stable", "prefer-stable": true, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "config": { "allow-plugins": { "pestphp/pest-plugin": true, "php-http/discovery": true }, "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "scripts": { "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } } ```

I first installed laravel-lang/common version 6.3 to make sure the installation was correct, then upgraded to version 6.4. There were no problems with the installation.

Installation log ```bash Helldar@HellPC MINGW64 /d/domains/test-198 $ composer update Loading composer repositories with package information Updating dependencies Lock file operations: 3 installs, 1 update, 0 removals - Locking composer/class-map-generator (1.3.4) - Locking composer/pcre (3.1.4) - Upgrading laravel-lang/common (6.3.0 => 6.4.0) - Locking laravel-lang/models (1.0.0) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 3 installs, 1 update, 0 removals - Installing composer/pcre (3.1.4): Extracting archive - Installing composer/class-map-generator (1.3.4): Extracting archive - Installing laravel-lang/models (1.0.0): Extracting archive - Upgrading laravel-lang/common (6.3.0 => 6.4.0): Extracting archive Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi INFO Discovering packages. backpack/basset ............................................................................................... DONE backpack/crud ................................................................................................. DONE backpack/generators ........................................................................................... DONE barryvdh/laravel-debugbar ..................................................................................... DONE barryvdh/laravel-dompdf ....................................................................................... DONE creativeorange/gravatar ....................................................................................... DONE cviebrock/eloquent-sluggable .................................................................................. DONE jeroen-g/laravel-packager ..................................................................................... DONE laravel-lang/actions .......................................................................................... DONE laravel-lang/attributes ....................................................................................... DONE laravel-lang/config ........................................................................................... DONE laravel-lang/http-statuses .................................................................................... DONE laravel-lang/lang ............................................................................................. DONE laravel-lang/locales .......................................................................................... DONE laravel-lang/models ........................................................................................... DONE laravel-lang/publisher ........................................................................................ DONE laravel-lang/routes ........................................................................................... DONE laravel/fortify ............................................................................................... DONE laravel/passport .............................................................................................. DONE laravel/sail .................................................................................................. DONE laravel/sanctum ............................................................................................... DONE laravel/tinker ................................................................................................ DONE livewire/livewire ............................................................................................. DONE maatwebsite/excel ............................................................................................. DONE nesbot/carbon ................................................................................................. DONE nunomaduro/collision .......................................................................................... DONE nunomaduro/termwind ........................................................................................... DONE opcodesio/log-viewer .......................................................................................... DONE prologue/alerts ............................................................................................... DONE spatie/laravel-ignition ....................................................................................... DONE ziming/json-field-for-backpack ................................................................................ DONE 111 packages you are using are looking for funding. Use the `composer fund` command to find out more! ```

I also noticed that you have not installed the laravel-lang/lang dependency version 14 to work with Laravel 10. This could also be the cause of the error.

composer require --dev laravel-lang/lang:^14.0

https://laravel-lang.com/packages-common.html#installation

I performed these steps on both Windows and Ubuntu (WSL).

I have not been able to reproduce the problem. Can you send me a detailed error log?

To do this, run the composer update -vv console command.

bedoz commented 3 months ago

Hi Andrey, sure mapo/* are private packages we wrote to extend laravel and backpack for laravel. you can remove these packages i also did it to find what package break my installation. I tried to add "laravel-lang/common": "^6.3.0" again and to install also "laravel-lang/lang": "^14.0" that was already installed as dependency of common package.

Removing "common" package my log is:

Remove packages log ```console Loading composer repositories with package information Reading composer.json of mapo/backpack-editorjs-field (main) Importing branch main (dev-main) Reading composer.json of mapo/laravel-multisite-on-folders (0.1) Importing tag 0.1 (0.1.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (0.1.1) Importing tag 0.1.1 (0.1.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (0.1.2) Importing tag 0.1.2 (0.1.2.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.0) Importing tag 1.0.0 (1.0.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.1) Importing tag 1.0.1 (1.0.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.2) Importing tag 1.0.2 (1.0.2.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.1.0) Importing tag 1.1.0 (1.1.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.2.0) Importing tag 1.2.0 (1.2.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.2.1) Importing tag 1.2.1 (1.2.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.3.0) Importing tag 1.3.0 (1.3.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.4.0) Importing tag 1.4.0 (1.4.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-multisite-on-folders (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/laravel-multisite-on-folders (Laravel-10-fix-404-non-sono-sicuro) Importing branch Laravel-10-fix-404-non-sono-sicuro (dev-Laravel-10-fix-404-non-sono-sicuro) Reading composer.json of mapo/laravel-multisite-on-folders (lazy) Importing branch lazy (dev-lazy) Reading composer.json of mapo/laravel-multisite-on-folders (modifiche_relations_by_site) Importing branch modifiche_relations_by_site (dev-modifiche_relations_by_site) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-branch-test-fix) Importing branch redirect-branch-test-fix (dev-redirect-branch-test-fix) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-feature) Importing branch redirect-feature (dev-redirect-feature) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-feature-order-langs) Importing branch redirect-feature-order-langs (dev-redirect-feature-order-langs) Reading composer.json of mapo/laravel-multisite-on-folders (update_for_laravel8) Importing branch update_for_laravel8 (dev-update_for_laravel8) Reading composer.json of mapo/laravel-backpack-menu (0.1) Importing tag 0.1 (0.1.0.0) Reading composer.json of mapo/laravel-backpack-menu (0.2) Importing tag 0.2 (0.2.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.0) Importing tag 1.0.0 (1.0.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.1) Importing tag 1.0.1 (1.0.1.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.2) Importing tag 1.0.2 (1.0.2.0) Reading composer.json of mapo/laravel-backpack-menu (1.1.0) Importing tag 1.1.0 (1.1.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.1.1) Importing tag 1.1.1 (1.1.1.0) Reading composer.json of mapo/laravel-backpack-menu (2.0.0) Importing tag 2.0.0 (2.0.0.0) Reading composer.json of mapo/laravel-backpack-menu (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-backpack-menu (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/laravel-backpack-menu (multidomain) Importing branch multidomain (dev-multidomain) Reading composer.json of mapo/laravel-backpack-translation-manager (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-backpack-translation-manager (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/seo-tools (master) Importing branch master (dev-master) Reading composer.json of mapo/seo-tools (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/seo-tools (modifiche_seotools) Importing branch modifiche_seotools (dev-modifiche_seotools) Reading composer.json of mapo/seo-tools (multi-domain) Importing branch multi-domain (dev-multi-domain) Reading composer.json of mapo/seo-tools (revert-360b8e46) Importing branch revert-360b8e46 (dev-revert-360b8e46) Reading composer.json of mapo/seo-tools (seo_rollerblade) Importing branch seo_rollerblade (dev-seo_rollerblade) Reading composer.json of mapo/qr-code-manager (master) Importing branch master (dev-master) Reading composer.json of mapo/qr-code-manager (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/model-translation-sheet (main) Importing branch main (dev-main) Reading composer.json of mapo/model-translation-sheet (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Pool optimizer completed in 1.995 seconds Found 18,388 package versions referenced in your dependency graph. 16,746 (91%) were optimized away. Updating dependencies Dependency resolution completed in 0.024 seconds Analyzed 1642 packages to resolve dependencies Analyzed 16112 rules to resolve dependencies Dependency resolution completed in 0.001 seconds Lock file operations: 0 installs, 0 updates, 22 removals Removals: symfony/polyfill-php81, laravel-lang/routes, laravel-lang/publisher, laravel-lang/native-locale-names, laravel-lang/native-currency-names, laravel-lang/native-country-names, laravel-lang/m odels, laravel-lang/locales, laravel-lang/locale-list, laravel-lang/lang, laravel-lang/json-fallback, laravel-lang/http-statuses, laravel-lang/config, laravel-lang/common, laravel-lang/attributes, laravel-lang/actions, dragon-code/support, dragon-code/pretty-array, dragon-code/contracts, composer/pcre, composer/class-map-generator, archtechx/enums - Removing archtechx/enums (v1.0.1) from lock repo - Removing composer/class-map-generator (1.3.4) from lock repo - Removing composer/pcre (3.1.4) from lock repo - Removing dragon-code/contracts (2.23.0) from lock repo - Removing dragon-code/pretty-array (v4.1.0) from lock repo - Removing dragon-code/support (6.13.0) from lock repo - Removing laravel-lang/actions (1.8.4) from lock repo - Removing laravel-lang/attributes (2.10.7) from lock repo - Removing laravel-lang/common (6.4.0) from lock repo - Removing laravel-lang/config (1.8.2) from lock repo - Removing laravel-lang/http-statuses (3.8.3) from lock repo - Removing laravel-lang/json-fallback (2.1.0) from lock repo - Removing laravel-lang/lang (14.8.0) from lock repo - Removing laravel-lang/locale-list (1.4.0) from lock repo - Removing laravel-lang/locales (2.9.2) from lock repo - Removing laravel-lang/models (1.0.0) from lock repo - Removing laravel-lang/native-country-names (1.4.0) from lock repo - Removing laravel-lang/native-currency-names (1.4.0) from lock repo - Removing laravel-lang/native-locale-names (2.3.0) from lock repo - Removing laravel-lang/publisher (16.4.0) from lock repo - Removing laravel-lang/routes (1.4.0) from lock repo - Removing symfony/polyfill-php81 (v1.30.0) from lock repo Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 0 updates, 22 removals Removals: symfony/polyfill-php81, laravel-lang/routes, laravel-lang/publisher, laravel-lang/native-locale-names, laravel-lang/native-currency-names, laravel-lang/native-country-names, laravel-lang/m odels, laravel-lang/locales, laravel-lang/locale-list, laravel-lang/lang, laravel-lang/json-fallback, laravel-lang/http-statuses, laravel-lang/config, laravel-lang/common, laravel-lang/attributes, laravel-lang/actions, dragon-code/support, dragon-code/pretty-array, dragon-code/contracts, composer/pcre, composer/class-map-generator, archtechx/enums - Removing symfony/polyfill-php81 (v1.30.0) - Removing laravel-lang/routes (1.4.0) - Removing laravel-lang/publisher (16.4.0) - Removing laravel-lang/native-locale-names (2.3.0) - Removing laravel-lang/native-currency-names (1.4.0) - Removing laravel-lang/native-country-names (1.4.0) - Removing laravel-lang/models (1.0.0) - Removing laravel-lang/locales (2.9.2) - Removing laravel-lang/locale-list (1.4.0) - Removing laravel-lang/lang (14.8.0) - Removing laravel-lang/json-fallback (2.1.0) - Removing laravel-lang/http-statuses (3.8.3) - Removing laravel-lang/config (1.8.2) - Removing laravel-lang/common (6.4.0) - Removing laravel-lang/attributes (2.10.7) - Removing laravel-lang/actions (1.8.4) - Removing dragon-code/support (6.13.0) - Removing dragon-code/pretty-array (v4.1.0) - Removing dragon-code/contracts (2.23.0) - Removing composer/pcre (3.1.4) - Removing composer/class-map-generator (1.3.4) - Removing archtechx/enums (v1.0.1) Generating optimized autoload files > post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump > post-autoload-dump: @php artisan package:discover --ansi INFO Discovering packages. backpack/basset ............................................................................................................................. DONE backpack/crud ............................................................................................................................... DONE backpack/filemanager ........................................................................................................................ DONE backpack/generators ......................................................................................................................... DONE backpack/logmanager ......................................................................................................................... DONE backpack/permissionmanager .................................................................................................................. DONE backpack/pro ................................................................................................................................ DONE backpack/revise-operation ................................................................................................................... DONE backpack/settings ........................................................................................................................... DONE backpack/theme-coreuiv2 ..................................................................................................................... DONE barryvdh/laravel-debugbar ................................................................................................................... DONE barryvdh/laravel-dompdf ..................................................................................................................... DONE barryvdh/laravel-elfinder ................................................................................................................... DONE chelout/laravel-relationship-events ......................................................................................................... DONE creativeorange/gravatar ..................................................................................................................... DONE cviebrock/eloquent-sluggable ................................................................................................................ DONE intervention/image .......................................................................................................................... DONE jeroen-g/laravel-packager ................................................................................................................... DONE laravel/fortify ............................................................................................................................. DONE laravel/passport ............................................................................................................................ DONE laravel/sail ................................................................................................................................ DONE laravel/sanctum ............................................................................................................................. DONE laravel/tinker .............................................................................................................................. DONE livewire/livewire ........................................................................................................................... DONE maatwebsite/excel ........................................................................................................................... DONE mapo/backpack-editorjs-field ................................................................................................................ DONE mapo/laravel-backpack-menu .................................................................................................................. DONE mapo/laravel-backpack-translation-manager ................................................................................................... DONE mapo/laravel-multisite-on-folders ........................................................................................................... DONE mapo/model-translation-sheet ................................................................................................................ DONE mapo/qr-code-manager ........................................................................................................................ DONE mapo/seo-tools .............................................................................................................................. DONE nesbot/carbon ............................................................................................................................... DONE nunomaduro/collision ........................................................................................................................ DONE nunomaduro/termwind ......................................................................................................................... DONE opcodesio/log-viewer ........................................................................................................................ DONE prologue/alerts ............................................................................................................................. DONE spatie/laravel-ignition ..................................................................................................................... DONE spatie/laravel-image-optimizer .............................................................................................................. DONE spatie/laravel-permission ................................................................................................................... DONE spatie/laravel-sitemap ...................................................................................................................... DONE spatie/laravel-translatable ................................................................................................................. DONE spatie/laravel-translation-loader ........................................................................................................... DONE venturecraft/revisionable ................................................................................................................... DONE ziming/json-field-for-backpack .............................................................................................................. DONE 121 packages you are using are looking for funding. Use the `composer fund` command to find out more! > post-update-cmd: @php artisan vendor:publish --tag=laravel-assets --ansi --force INFO No publishable resources for tag [laravel-assets]. No security vulnerability advisories found. ```

Adding "common" and "lang" package my log is:

Adding packages log ```console Loading composer repositories with package information Reading composer.json of mapo/backpack-editorjs-field (main) Importing branch main (dev-main) Reading composer.json of mapo/laravel-multisite-on-folders (0.1) Importing tag 0.1 (0.1.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (0.1.1) Importing tag 0.1.1 (0.1.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (0.1.2) Importing tag 0.1.2 (0.1.2.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.0) Importing tag 1.0.0 (1.0.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.1) Importing tag 1.0.1 (1.0.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.0.2) Importing tag 1.0.2 (1.0.2.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.1.0) Importing tag 1.1.0 (1.1.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.2.0) Importing tag 1.2.0 (1.2.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.2.1) Importing tag 1.2.1 (1.2.1.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.3.0) Importing tag 1.3.0 (1.3.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (1.4.0) Importing tag 1.4.0 (1.4.0.0) Reading composer.json of mapo/laravel-multisite-on-folders (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-multisite-on-folders (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/laravel-multisite-on-folders (Laravel-10-fix-404-non-sono-sicuro) Importing branch Laravel-10-fix-404-non-sono-sicuro (dev-Laravel-10-fix-404-non-sono-sicuro) Reading composer.json of mapo/laravel-multisite-on-folders (lazy) Importing branch lazy (dev-lazy) Reading composer.json of mapo/laravel-multisite-on-folders (modifiche_relations_by_site) Importing branch modifiche_relations_by_site (dev-modifiche_relations_by_site) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-branch-test-fix) Importing branch redirect-branch-test-fix (dev-redirect-branch-test-fix) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-feature) Importing branch redirect-feature (dev-redirect-feature) Reading composer.json of mapo/laravel-multisite-on-folders (redirect-feature-order-langs) Importing branch redirect-feature-order-langs (dev-redirect-feature-order-langs) Reading composer.json of mapo/laravel-multisite-on-folders (update_for_laravel8) Importing branch update_for_laravel8 (dev-update_for_laravel8) Reading composer.json of mapo/laravel-backpack-menu (0.1) Importing tag 0.1 (0.1.0.0) Reading composer.json of mapo/laravel-backpack-menu (0.2) Importing tag 0.2 (0.2.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.0) Importing tag 1.0.0 (1.0.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.1) Importing tag 1.0.1 (1.0.1.0) Reading composer.json of mapo/laravel-backpack-menu (1.0.2) Importing tag 1.0.2 (1.0.2.0) Reading composer.json of mapo/laravel-backpack-menu (1.1.0) Importing tag 1.1.0 (1.1.0.0) Reading composer.json of mapo/laravel-backpack-menu (1.1.1) Importing tag 1.1.1 (1.1.1.0) Reading composer.json of mapo/laravel-backpack-menu (2.0.0) Importing tag 2.0.0 (2.0.0.0) Reading composer.json of mapo/laravel-backpack-menu (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-backpack-menu (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/laravel-backpack-menu (multidomain) Importing branch multidomain (dev-multidomain) Reading composer.json of mapo/laravel-backpack-translation-manager (master) Importing branch master (dev-master) Reading composer.json of mapo/laravel-backpack-translation-manager (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/seo-tools (master) Importing branch master (dev-master) Reading composer.json of mapo/seo-tools (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/seo-tools (modifiche_seotools) Importing branch modifiche_seotools (dev-modifiche_seotools) Reading composer.json of mapo/seo-tools (multi-domain) Importing branch multi-domain (dev-multi-domain) Reading composer.json of mapo/seo-tools (revert-360b8e46) Importing branch revert-360b8e46 (dev-revert-360b8e46) Reading composer.json of mapo/seo-tools (seo_rollerblade) Importing branch seo_rollerblade (dev-seo_rollerblade) Reading composer.json of mapo/qr-code-manager (master) Importing branch master (dev-master) Reading composer.json of mapo/qr-code-manager (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Reading composer.json of mapo/model-translation-sheet (main) Importing branch main (dev-main) Reading composer.json of mapo/model-translation-sheet (Laravel-10) Importing branch Laravel-10 (dev-Laravel-10) Pool optimizer completed in 3.061 seconds Found 18,751 package versions referenced in your dependency graph. 17,041 (91%) were optimized away. Updating dependencies Dependency resolution completed in 0.041 seconds Analyzed 1710 packages to resolve dependencies Analyzed 16857 rules to resolve dependencies Dependency resolution completed in 0.001 seconds Lock file operations: 22 installs, 0 updates, 0 removals Installs: composer/pcre:3.1.4, dragon-code/contracts:2.23.0, symfony/polyfill-php81:v1.30.0, dragon-code/support:6.13.0, laravel-lang/native-locale-names:2.3.0, laravel-lang/native-currency-names:1. 4.0, laravel-lang/native-country-names:1.4.0, archtechx/enums:v1.0.1, laravel-lang/locale-list:1.4.0, laravel-lang/config:1.8.2, laravel-lang/locales:2.9.2, laravel-lang/routes:1.4.0, dragon-code/pr etty-array:v4.1.0, laravel-lang/publisher:16.4.0, composer/class-map-generator:1.3.4, laravel-lang/models:1.0.0, laravel-lang/lang:14.8.0, laravel-lang/json-fallback:2.1.0, laravel-lang/http-statuses:3.8.3, laravel-lang/attributes:2.10.7, laravel-lang/actions:1.8.4, laravel-lang/common:6.4.0 - Locking archtechx/enums (v1.0.1) from composer repo (https://repo.packagist.org) - Locking composer/class-map-generator (1.3.4) from composer repo (https://repo.packagist.org) - Locking composer/pcre (3.1.4) from composer repo (https://repo.packagist.org) - Locking dragon-code/contracts (2.23.0) from composer repo (https://repo.packagist.org) - Locking dragon-code/pretty-array (v4.1.0) from composer repo (https://repo.packagist.org) - Locking dragon-code/support (6.13.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/actions (1.8.4) from composer repo (https://repo.packagist.org) - Locking laravel-lang/attributes (2.10.7) from composer repo (https://repo.packagist.org) - Locking laravel-lang/common (6.4.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/config (1.8.2) from composer repo (https://repo.packagist.org) - Locking laravel-lang/http-statuses (3.8.3) from composer repo (https://repo.packagist.org) - Locking laravel-lang/json-fallback (2.1.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/lang (14.8.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/locale-list (1.4.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/locales (2.9.2) from composer repo (https://repo.packagist.org) - Locking laravel-lang/models (1.0.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/native-country-names (1.4.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/native-currency-names (1.4.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/native-locale-names (2.3.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/publisher (16.4.0) from composer repo (https://repo.packagist.org) - Locking laravel-lang/routes (1.4.0) from composer repo (https://repo.packagist.org) - Locking symfony/polyfill-php81 (v1.30.0) from composer repo (https://repo.packagist.org) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 22 installs, 0 updates, 0 removals Installs: composer/pcre:3.1.4, dragon-code/contracts:2.23.0, symfony/polyfill-php81:v1.30.0, dragon-code/support:6.13.0, laravel-lang/native-locale-names:2.3.0, laravel-lang/native-currency-names:1. 4.0, laravel-lang/native-country-names:1.4.0, archtechx/enums:v1.0.1, laravel-lang/locale-list:1.4.0, laravel-lang/config:1.8.2, laravel-lang/locales:2.9.2, laravel-lang/routes:1.4.0, dragon-code/pr etty-array:v4.1.0, laravel-lang/publisher:16.4.0, composer/class-map-generator:1.3.4, laravel-lang/models:1.0.0, laravel-lang/lang:14.8.0, laravel-lang/json-fallback:2.1.0, laravel-lang/http-statuses:3.8.3, laravel-lang/attributes:2.10.7, laravel-lang/actions:1.8.4, laravel-lang/common:6.4.0 - Loading composer/pcre (3.1.4) from cache - Loading dragon-code/contracts (2.23.0) from cache - Loading symfony/polyfill-php81 (v1.30.0) from cache - Loading dragon-code/support (6.13.0) from cache - Loading laravel-lang/native-locale-names (2.3.0) from cache - Loading laravel-lang/native-currency-names (1.4.0) from cache - Loading laravel-lang/native-country-names (1.4.0) from cache - Loading archtechx/enums (v1.0.1) from cache - Loading laravel-lang/locale-list (1.4.0) from cache - Loading laravel-lang/config (1.8.2) from cache - Loading laravel-lang/locales (2.9.2) from cache - Loading laravel-lang/routes (1.4.0) from cache - Loading dragon-code/pretty-array (v4.1.0) from cache - Loading laravel-lang/publisher (16.4.0) from cache - Loading composer/class-map-generator (1.3.4) from cache - Loading laravel-lang/models (1.0.0) from cache - Loading laravel-lang/lang (14.8.0) from cache - Loading laravel-lang/json-fallback (2.1.0) from cache - Loading laravel-lang/http-statuses (3.8.3) from cache - Loading laravel-lang/attributes (2.10.7) from cache - Loading laravel-lang/actions (1.8.4) from cache - Loading laravel-lang/common (6.4.0) from cache - Installing composer/pcre (3.1.4): Extracting archive - Installing dragon-code/contracts (2.23.0): Extracting archive - Installing symfony/polyfill-php81 (v1.30.0): Extracting archive - Installing dragon-code/support (6.13.0): Extracting archive - Installing laravel-lang/native-locale-names (2.3.0): Extracting archive - Installing laravel-lang/native-currency-names (1.4.0): Extracting archive - Installing laravel-lang/native-country-names (1.4.0): Extracting archive - Installing archtechx/enums (v1.0.1): Extracting archive - Installing laravel-lang/locale-list (1.4.0): Extracting archive - Installing laravel-lang/config (1.8.2): Extracting archive - Installing laravel-lang/locales (2.9.2): Extracting archive - Installing laravel-lang/routes (1.4.0): Extracting archive - Installing dragon-code/pretty-array (v4.1.0): Extracting archive - Installing laravel-lang/publisher (16.4.0): Extracting archive - Installing composer/class-map-generator (1.3.4): Extracting archive - Installing laravel-lang/models (1.0.0): Extracting archive - Installing laravel-lang/lang (14.8.0): Extracting archive - Installing laravel-lang/json-fallback (2.1.0): Extracting archive - Installing laravel-lang/http-statuses (3.8.3): Extracting archive - Installing laravel-lang/attributes (2.10.7): Extracting archive - Installing laravel-lang/actions (1.8.4): Extracting archive - Installing laravel-lang/common (6.4.0): Extracting archive 3 package suggestions were added by new dependencies, use `composer suggest` to see details. Generating optimized autoload files > post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump > post-autoload-dump: @php artisan package:discover --ansi Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code -1073741571 ```

In my composer.json in require-dev section i added:

"laravel-lang/common": "^6.3.0",
"laravel-lang/lang": "^14.0",
andrey-helldar commented 3 months ago

Does your application have a published config/localization.php file?

bedoz commented 3 months ago

No, no locatization.php file are in my config folder.

andrey-helldar commented 3 months ago

Ok. There's no configuration problem.

Looking at the log file, it seems that the problem may be either a lack of RAM to complete the dependency installation command or something with the application.

I ran the above example on a clean Laravel 10 project under PHP 8.3 on both Windows and Ubuntu.

Try deleting the vendor folder and reinstalling the dependencies first:

rm -rf vendor
composer update

If you are developing a package, make sure that your files are not modified in the vendor folder.

andrey-helldar commented 3 months ago

Try the following steps:

rm -f storage/logs/laravel.log
php artisan package:discover

And after that, once the error appears, check the contents of the storage/logs/laravel.log file.

andrey-helldar commented 3 months ago

One more thing. Try updating the dependencies afterwards. I have released version 1.0.1 for the Models project. Maybe the error could be due to accessing a non-existent folder. Although the error did not reproduce for me.

andrey-helldar commented 3 months ago

Also, what version of Composer are you using?

composer --version

My version is:

$ composer --version
Composer version 2.7.7 2024-06-10 22:11:12
PHP version 8.3.9 (D:\modules\php\php.exe)
Run the "diagnose" command to get more detailed diagnostics output.
bedoz commented 3 months ago

I tried to remove the vendor folder before, but anyway when install vendors it fail. The same thing happen on my AWS EC2 system on stage website with elasticbeanstalk where deploy recreate server from 0.

Log ```console A:\PhpstormProjects\elica(main -> origin) λ rm -rf vendor A:\PhpstormProjects\elica(main -> origin) λ composer update Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 1 update, 0 removals - Upgrading dflydev/dot-access-data (v3.0.2 => v3.0.3) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 230 installs, 0 updates, 0 removals - Downloading dflydev/dot-access-data (v3.0.3) - Syncing mapo/backpack-editorjs-field (dev-main 7f58335) into cache - Syncing mapo/laravel-backpack-menu (dev-multidomain 560b45d) into cache - Syncing mapo/laravel-backpack-translation-manager (dev-Laravel-10 f2fcaf6) into cache - Syncing mapo/model-translation-sheet (dev-Laravel-10 9e09c66) into cache - Syncing mapo/laravel-multisite-on-folders (dev-redirect-feature eb0fbb1) into cache - Syncing mapo/qr-code-manager (dev-Laravel-10 e89c015) into cache - Syncing mapo/seo-tools (dev-multi-domain fedea37) into cache - Installing voku/portable-ascii (2.0.1): Extracting archive - Installing symfony/polyfill-php80 (v1.30.0): Extracting archive - Installing symfony/polyfill-mbstring (v1.30.0): Extracting archive - Installing symfony/polyfill-ctype (v1.30.0): Extracting archive - Installing phpoption/phpoption (1.9.2): Extracting archive - Installing graham-campbell/result-type (v1.1.2): Extracting archive - Installing vlucas/phpdotenv (v5.6.0): Extracting archive - Installing symfony/css-selector (v6.4.8): Extracting archive - Installing tijsverkoyen/css-to-inline-styles (v2.2.7): Extracting archive - Installing symfony/deprecation-contracts (v3.5.0): Extracting archive - Installing symfony/var-dumper (v6.4.9): Extracting archive - Installing symfony/polyfill-uuid (v1.30.0): Extracting archive - Installing symfony/uid (v6.4.8): Extracting archive - Installing symfony/routing (v6.4.8): Extracting archive - Installing symfony/process (v6.4.8): Extracting archive - Installing symfony/polyfill-php72 (v1.30.0): Extracting archive - Installing symfony/polyfill-intl-normalizer (v1.30.0): Extracting archive - Installing symfony/polyfill-intl-idn (v1.30.0): Extracting archive - Installing symfony/mime (v6.4.9): Extracting archive - Installing psr/container (2.0.2): Extracting archive - Installing symfony/service-contracts (v3.5.0): Extracting archive - Installing psr/event-dispatcher (1.0.0): Extracting archive - Installing symfony/event-dispatcher-contracts (v3.5.0): Extracting archive - Installing symfony/event-dispatcher (v6.4.8): Extracting archive - Installing psr/log (3.0.0): Extracting archive - Installing doctrine/lexer (3.0.1): Extracting archive - Installing egulias/email-validator (4.0.2): Extracting archive - Installing symfony/mailer (v6.4.9): Extracting archive - Installing symfony/polyfill-php83 (v1.30.0): Extracting archive - Installing symfony/http-foundation (v6.4.8): Extracting archive - Installing symfony/error-handler (v6.4.9): Extracting archive - Installing symfony/http-kernel (v6.4.9): Extracting archive - Installing symfony/finder (v6.4.8): Extracting archive - Installing symfony/polyfill-intl-grapheme (v1.30.0): Extracting archive - Installing symfony/string (v6.4.9): Extracting archive - Installing symfony/console (v6.4.9): Extracting archive - Installing ramsey/collection (2.0.0): Extracting archive - Installing brick/math (0.12.1): Extracting archive - Installing ramsey/uuid (4.7.6): Extracting archive - Installing psr/simple-cache (3.0.0): Extracting archive - Installing nunomaduro/termwind (v1.15.1): Extracting archive - Installing symfony/translation-contracts (v3.5.0): Extracting archive - Installing symfony/translation (v6.4.8): Extracting archive - Installing psr/clock (1.0.0): Extracting archive - Installing carbonphp/carbon-doctrine-types (2.1.0): Extracting archive - Installing nesbot/carbon (2.72.5): Extracting archive - Installing monolog/monolog (3.7.0): Extracting archive - Installing league/mime-type-detection (1.15.0): Extracting archive - Installing league/flysystem (3.28.0): Extracting archive - Installing league/flysystem-local (3.28.0): Extracting archive - Installing nette/utils (v4.0.4): Extracting archive - Installing nette/schema (v1.3.0): Extracting archive - Installing dflydev/dot-access-data (v3.0.3): Extracting archive - Installing league/config (v1.2.0): Extracting archive - Installing league/commonmark (2.4.2): Extracting archive - Installing laravel/serializable-closure (v1.3.3): Extracting archive - Installing laravel/framework (v10.48.15): Extracting archive - Installing laravel/prompts (v0.1.24): Extracting archive - Installing guzzlehttp/uri-template (v1.0.3): Extracting archive - Installing fruitcake/php-cors (v1.3.0): Extracting archive - Installing webmozart/assert (1.11.0): Extracting archive - Installing dragonmantank/cron-expression (v3.3.3): Extracting archive - Installing doctrine/inflector (2.0.10): Extracting archive - Installing psr/http-message (2.0): Extracting archive - Installing psr/http-client (1.0.3): Extracting archive - Installing ralouphie/getallheaders (3.0.3): Extracting archive - Installing psr/http-factory (1.1.0): Extracting archive - Installing guzzlehttp/psr7 (2.6.2): Extracting archive - Installing guzzlehttp/promises (2.0.2): Extracting archive - Installing guzzlehttp/guzzle (7.8.1): Extracting archive - Installing backpack/basset (1.3.4): Extracting archive - Installing studio-42/elfinder (2.1.65): Extracting archive - Installing intervention/image (2.7.2): Extracting archive - Installing barryvdh/elfinder-flysystem-driver (v0.4.3): Extracting archive - Installing barryvdh/laravel-elfinder (v0.5.3): Extracting archive - Installing prologue/alerts (1.2.0): Extracting archive - Installing psr/cache (3.0.0): Extracting archive - Installing doctrine/event-manager (2.0.1): Extracting archive - Installing doctrine/deprecations (1.1.3): Extracting archive - Installing doctrine/cache (2.2.0): Extracting archive - Installing doctrine/dbal (3.8.6): Extracting archive - Installing creativeorange/gravatar (v1.0.24): Extracting archive - Installing backpack/crud (6.7.17): Extracting archive - Installing backpack/filemanager (3.0.8): Extracting archive - Installing backpack/generators (v4.0.5): Extracting archive - Installing backpack/logmanager (v5.0.2): Extracting archive - Installing spatie/laravel-permission (6.9.0): Extracting archive - Installing backpack/permissionmanager (7.2.1): Extracting archive - Installing venturecraft/revisionable (1.41.0): Extracting archive - Installing backpack/revise-operation (2.0.0): Extracting archive - Installing backpack/settings (3.1.1): Extracting archive - Installing backpack/theme-coreuiv2 (1.2.4): Extracting archive - Installing maximebf/debugbar (v1.22.3): Extracting archive - Installing barryvdh/laravel-debugbar (v3.13.5): Extracting archive - Installing sabberworm/php-css-parser (v8.6.0): Extracting archive - Installing phenx/php-svg-lib (0.5.4): Extracting archive - Installing phenx/php-font-lib (0.5.6): Extracting archive - Installing masterminds/html5 (2.9.0): Extracting archive - Installing dompdf/dompdf (v2.0.8): Extracting archive - Installing barryvdh/laravel-dompdf (v2.2.0): Extracting archive - Installing chelout/laravel-relationship-events (v2.0.0): Extracting archive - Installing composer/pcre (3.1.4): Extracting archive - Installing cocur/slugify (v4.5.1): Extracting archive - Installing cviebrock/eloquent-sluggable (10.0.0): Extracting archive - Installing dasprid/enum (1.0.5): Extracting archive - Installing deployer/deployer (v7.4.0): Extracting archive - Installing dragon-code/contracts (2.23.0): Extracting archive - Installing ezimuel/guzzlestreams (3.1.0): Extracting archive - Installing fakerphp/faker (v1.23.1): Extracting archive - Installing google/apiclient-services (v0.363.0): Extracting archive - Installing firebase/php-jwt (v6.10.1): Extracting archive - Installing google/auth (v1.40.0): Extracting archive - Installing google/recaptcha (1.3.0): Extracting archive - Installing jeroen-g/laravel-packager (2.10.0): Extracting archive - Installing symfony/polyfill-php81 (v1.30.0): Extracting archive - Installing dragon-code/support (6.13.0): Extracting archive - Installing laravel-lang/native-locale-names (2.3.0): Extracting archive - Installing laravel-lang/native-currency-names (1.4.0): Extracting archive - Installing laravel-lang/native-country-names (1.4.0): Extracting archive - Installing archtechx/enums (v1.0.1): Extracting archive - Installing laravel-lang/locale-list (1.4.0): Extracting archive - Installing laravel-lang/config (1.8.2): Extracting archive - Installing laravel-lang/locales (2.9.2): Extracting archive - Installing laravel-lang/routes (1.4.0): Extracting archive - Installing dragon-code/pretty-array (v4.1.0): Extracting archive - Installing composer/semver (3.4.0): Extracting archive - Installing laravel-lang/publisher (16.4.0): Extracting archive - Installing composer/class-map-generator (1.3.4): Extracting archive - Installing laravel-lang/models (1.0.0): Extracting archive - Installing laravel-lang/lang (14.8.0): Extracting archive - Installing laravel-lang/json-fallback (2.1.0): Extracting archive - Installing laravel-lang/http-statuses (3.8.3): Extracting archive - Installing laravel-lang/attributes (2.10.7): Extracting archive - Installing laravel-lang/actions (1.8.4): Extracting archive - Installing laravel-lang/common (6.4.0): Extracting archive - Installing paragonie/constant_time_encoding (v2.7.0): Extracting archive - Installing pragmarx/google2fa (v8.0.1): Extracting archive - Installing bacon/bacon-qr-code (2.0.8): Extracting archive - Installing laravel/fortify (v1.21.1): Extracting archive - Installing symfony/psr-http-message-bridge (v2.3.1): Extracting archive - Installing paragonie/random_compat (v9.99.100): Extracting archive - Installing phpseclib/phpseclib (3.0.39): Extracting archive - Installing nyholm/psr7 (1.8.1): Extracting archive - Installing league/uri-interfaces (7.4.1): Extracting archive - Installing league/uri (7.4.1): Extracting archive - Installing league/event (2.2.0): Extracting archive - Installing lcobucci/jwt (5.3.0): Extracting archive - Installing lcobucci/clock (3.0.0): Extracting archive - Installing defuse/php-encryption (v2.4.0): Extracting archive - Installing league/oauth2-server (8.5.4): Extracting archive - Installing laravel/passport (v11.10.6): Extracting archive - Installing laravel/pint (v1.16.1): Extracting archive - Installing symfony/yaml (v6.4.8): Extracting archive - Installing laravel/sail (v1.30.1): Extracting archive - Installing laravel/sanctum (v3.3.3): Extracting archive - Installing nikic/php-parser (v5.1.0): Extracting archive - Installing psy/psysh (v0.12.4): Extracting archive - Installing laravel/tinker (v2.9.0): Extracting archive - Installing livewire/livewire (v3.5.2): Extracting archive - Installing markbaker/matrix (3.0.1): Extracting archive - Installing markbaker/complex (3.0.2): Extracting archive - Installing maennchen/zipstream-php (3.1.0): Extracting archive - Installing ezyang/htmlpurifier (v4.17.0): Extracting archive - Installing phpoffice/phpspreadsheet (1.29.0): Extracting archive - Installing maatwebsite/excel (3.1.55): Extracting archive - Installing mapo/backpack-editorjs-field (dev-main 7f58335): Cloning 7f58335c0f from cache - Installing backpack/pro (2.2.4): Extracting archive - Installing mapo/laravel-backpack-menu (dev-multidomain 560b45d): Cloning 560b45dc85 from cache - Installing spatie/laravel-translation-loader (2.8.0): Extracting archive - Installing mapo/laravel-backpack-translation-manager (dev-Laravel-10 f2fcaf6): Cloning f2fcaf6e2c from cache - Installing spatie/laravel-package-tools (1.16.4): Extracting archive - Installing spatie/laravel-translatable (6.7.1): Extracting archive - Installing google/apiclient (v2.16.0): Extracting archive - Installing mapo/model-translation-sheet (dev-Laravel-10 9e09c66): Cloning 9e09c66848 from cache - Installing spatie/macroable (2.0.0): Extracting archive - Installing spatie/url (2.4.0): Extracting archive - Installing spatie/image-optimizer (1.7.5): Extracting archive - Installing spatie/laravel-image-optimizer (1.8.0): Extracting archive - Installing mapo/laravel-multisite-on-folders (dev-redirect-feature eb0fbb1): Cloning eb0fbb1f33 from cache - Installing mapo/qr-code-manager (dev-Laravel-10 e89c015): Cloning e89c0156f2 from cache - Installing symfony/dom-crawler (v6.4.8): Extracting archive - Installing spatie/robots-txt (2.2.0): Extracting archive - Installing spatie/temporary-directory (2.2.1): Extracting archive - Installing league/glide (2.3.0): Extracting archive - Installing spatie/image (2.2.7): Extracting archive - Installing spatie/browsershot (3.61.0): Extracting archive - Installing nicmart/tree (0.3.1): Extracting archive - Installing spatie/crawler (7.1.3): Extracting archive - Installing spatie/laravel-sitemap (6.4.0): Extracting archive - Installing mapo/seo-tools (dev-multi-domain fedea37): Cloning fedea376c8 from cache - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive - Installing mockery/mockery (1.6.12): Extracting archive - Installing filp/whoops (2.15.4): Extracting archive - Installing nunomaduro/collision (v7.10.0): Extracting archive - Installing opcodesio/mail-parser (v0.1.6): Extracting archive - Installing opcodesio/log-viewer (v3.10.1): Extracting archive - Installing react/promise (v2.11.0): Extracting archive - Installing ezimuel/ringphp (1.2.2): Extracting archive - Installing opensearch-project/opensearch-php (2.3.0): Extracting archive - Installing sebastian/version (4.0.1): Extracting archive - Installing sebastian/type (4.0.0): Extracting archive - Installing sebastian/recursion-context (5.0.0): Extracting archive - Installing sebastian/object-reflector (3.0.0): Extracting archive - Installing sebastian/object-enumerator (5.0.0): Extracting archive - Installing sebastian/global-state (6.0.2): Extracting archive - Installing sebastian/exporter (5.1.2): Extracting archive - Installing sebastian/environment (6.1.0): Extracting archive - Installing sebastian/diff (5.1.1): Extracting archive - Installing sebastian/comparator (5.0.1): Extracting archive - Installing sebastian/code-unit (2.0.0): Extracting archive - Installing sebastian/cli-parser (2.0.1): Extracting archive - Installing phpunit/php-timer (6.0.0): Extracting archive - Installing phpunit/php-text-template (3.0.1): Extracting archive - Installing phpunit/php-invoker (4.0.0): Extracting archive - Installing phpunit/php-file-iterator (4.1.0): Extracting archive - Installing theseer/tokenizer (1.2.3): Extracting archive - Installing sebastian/lines-of-code (2.0.2): Extracting archive - Installing sebastian/complexity (3.2.0): Extracting archive - Installing sebastian/code-unit-reverse-lookup (3.0.0): Extracting archive - Installing phpunit/php-code-coverage (10.1.15): Extracting archive - Installing phar-io/version (3.2.1): Extracting archive - Installing phar-io/manifest (2.0.4): Extracting archive - Installing myclabs/deep-copy (1.12.0): Extracting archive - Installing phpunit/phpunit (10.5.26): Extracting archive - Installing spatie/error-solutions (1.0.4): Extracting archive - Installing spatie/backtrace (1.6.1): Extracting archive - Installing spatie/flare-client-php (1.7.0): Extracting archive - Installing spatie/ignition (1.15.0): Extracting archive - Installing spatie/laravel-ignition (2.8.0): Extracting archive - Installing ziming/json-field-for-backpack (1.2.1): Extracting archive Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code -1073741571 ```

I also tried with php artisan package:discover command from command line

A:\PhpstormProjects\elica(main -> origin)
λ rm -f storage/logs/laravel.log

A:\PhpstormProjects\elica(main -> origin)
λ php artisan package:discover

A:\PhpstormProjects\elica(main -> origin)

nothing happened and no log generated.

My composer version is:

A:\PhpstormProjects\elica(main -> origin)
λ composer --version
Composer version 2.7.7 2024-06-10 22:11:12
PHP version 8.1.18 (A:\laragon\bin\php\php-8.1.18-Win32-vs16-x64\php.exe)
Run the "diagnose" command to get more detailed diagnostics output.

I try now to update it again.

andrey-helldar commented 3 months ago

As a hard solution, you can restrict the Common version by making the following changes to your composer.json file:

-"laravel-lang/common": "^6.3",
+"laravel-lang/common": "6.3.*",

After that, you need to run the composer update console command.

But I'd like to find a reason for this behavior.

andrey-helldar commented 3 months ago

There's nothing suspicious.

I rolled back my PHP version to 8.1.29 and tried running the commands again. No errors:

log ```bash Helldar@HellPC MINGW64 /d/domains/test-198 $ composer --version Composer version 2.7.7 2024-06-10 22:11:12 PHP version 8.1.29 (D:\modules\php\php.exe) Run the "diagnose" command to get more detailed diagnostics output. Helldar@HellPC MINGW64 /d/domains/test-198 $ composer update Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 7 updates, 0 removals - Upgrading dflydev/dot-access-data (v3.0.2 => v3.0.3) - Upgrading laravel-lang/models (1.0.0 => 1.0.1) - Downgrading lcobucci/clock (3.2.0 => 3.0.0) - Downgrading symfony/css-selector (v7.1.1 => v6.4.8) - Downgrading symfony/event-dispatcher (v7.1.1 => v6.4.8) - Downgrading symfony/string (v7.1.2 => v6.4.9) - Downgrading symfony/yaml (v7.1.1 => v6.4.8) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 7 updates, 0 removals - Downloading symfony/css-selector (v6.4.8) - Downloading symfony/event-dispatcher (v6.4.8) - Downloading symfony/string (v6.4.9) - Downloading dflydev/dot-access-data (v3.0.3) - Downloading laravel-lang/models (1.0.1) - Downloading lcobucci/clock (3.0.0) - Downgrading symfony/css-selector (v7.1.1 => v6.4.8): Extracting archive - Downgrading symfony/event-dispatcher (v7.1.1 => v6.4.8): Extracting archive - Downgrading symfony/string (v7.1.2 => v6.4.9): Extracting archive - Upgrading dflydev/dot-access-data (v3.0.2 => v3.0.3): Extracting archive - Upgrading laravel-lang/models (1.0.0 => 1.0.1): Extracting archive - Downgrading lcobucci/clock (3.2.0 => 3.0.0): Extracting archive - Downgrading symfony/yaml (v7.1.1 => v6.4.8): Extracting archive Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi INFO Discovering packages. backpack/basset ............................................................................................... DONE backpack/crud ................................................................................................. DONE backpack/generators ........................................................................................... DONE barryvdh/laravel-debugbar ..................................................................................... DONE barryvdh/laravel-dompdf ....................................................................................... DONE creativeorange/gravatar ....................................................................................... DONE cviebrock/eloquent-sluggable .................................................................................. DONE jeroen-g/laravel-packager ..................................................................................... DONE laravel-lang/actions .......................................................................................... DONE laravel-lang/attributes ....................................................................................... DONE laravel-lang/config ........................................................................................... DONE laravel-lang/http-statuses .................................................................................... DONE laravel-lang/lang ............................................................................................. DONE laravel-lang/locales .......................................................................................... DONE laravel-lang/models ........................................................................................... DONE laravel-lang/publisher ........................................................................................ DONE laravel-lang/routes ........................................................................................... DONE laravel/fortify ............................................................................................... DONE laravel/passport .............................................................................................. DONE laravel/sail .................................................................................................. DONE laravel/sanctum ............................................................................................... DONE laravel/tinker ................................................................................................ DONE livewire/livewire ............................................................................................. DONE maatwebsite/excel ............................................................................................. DONE nesbot/carbon ................................................................................................. DONE nunomaduro/collision .......................................................................................... DONE nunomaduro/termwind ........................................................................................... DONE opcodesio/log-viewer .......................................................................................... DONE prologue/alerts ............................................................................................... DONE spatie/laravel-ignition ....................................................................................... DONE ziming/json-field-for-backpack ................................................................................ DONE 111 packages you are using are looking for funding. Use the `composer fund` command to find out more! What about running composer thanks now? This will spread some love by sending a star to 15 GitHub repositories of your fellow package maintainers. You can also run composer fund to discover how you can sponsor their work with some cash. > @php artisan vendor:publish --tag=laravel-assets --ansi --force INFO No publishable resources for tag [laravel-assets]. No security vulnerability advisories found. Helldar@HellPC MINGW64 /d/domains/test-198 $ composer info laravel-lang/common name : laravel-lang/common descrip. : Easily connect the necessary language packs to the application keywords : Laravel-lang, actions, attribute, attributes, breeze, buttons, cashier, fortify, framework, http, http-status, http-status-code, i18n, jetstream, lang, language, languages, laravel, locale, locales, localization, localizations, nova, publisher, spark, translation, translations, ui versions : * 6.4.0 released : 2024-07-06, this week type : library license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText homepage : source : [git] https://github.com/Laravel-Lang/common.git 36c0270180f71420c1166c26f38dc25e1c8b7f64 dist : [zip] https://api.github.com/repos/Laravel-Lang/common/zipball/36c0270180f71420c1166c26f38dc25e1c8b7f64 36c0270180f71420c1166c26f38dc25e1c8b7f64 path : D:\domains\test-198\vendor\laravel-lang\common names : laravel-lang/common support issues : https://github.com/Laravel-Lang/common/issues source : https://github.com/Laravel-Lang/common requires laravel-lang/actions ^1.8.3 laravel-lang/attributes ^2.10.7 laravel-lang/http-statuses ^3.8.3 laravel-lang/json-fallback ^2.1 laravel-lang/lang ^13.12 || ^14.0 || ^15.5.1 laravel-lang/locales ^2.8 laravel-lang/models ^1.0 laravel-lang/publisher ^16.4 laravel-lang/routes ^1.0 php ^8.1 requires (dev) dragon-code/support ^6.13 orchestra/testbench ^8.17 || ^9.1.2 phpunit/phpunit ^10.5.20 symfony/var-dumper ^6.4 || ^7.1.1 ```
andrey-helldar commented 3 months ago
A:\PhpstormProjects\elica(main -> origin)
λ rm -f storage/logs/laravel.log

A:\PhpstormProjects\elica(main -> origin)
λ php artisan package:discover

A:\PhpstormProjects\elica(main -> origin)

And how much RAM is allocated to the CLI process of PHP?

You can see this in the php.ini file in the memory_limit parameter or by running the php -i | grep memory_limit console command.

For example:

My Windows:

memory_limit = 32768M

My Ubuntu (Windows WSL):

$ php -i | grep memory_limit
memory_limit => -1 => -1
bedoz commented 3 months ago

Also upgrading to latest version no luck.

λ composer update
Loading composer repositories with package information
Updating dependencies                                 
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading laravel-lang/models (1.0.0 => 1.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downloading laravel-lang/models (1.0.1)
  - Upgrading laravel-lang/models (1.0.0 => 1.0.1): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code -1073741571

So i tried to update with "6.3.*" but no luck again:

λ composer update
Loading composer repositories with package information
Updating dependencies                                 
Lock file operations: 0 installs, 1 update, 3 removals
  - Removing composer/class-map-generator (1.3.4)
  - Removing composer/pcre (3.1.4)
  - Removing laravel-lang/models (1.0.1)
  - Downgrading laravel-lang/common (6.4.0 => 6.3.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 3 removals
  - Removing laravel-lang/models (1.0.1)
  - Removing composer/pcre (3.1.4)
  - Removing composer/class-map-generator (1.3.4)
  - Downgrading laravel-lang/common (6.4.0 => 6.3.0): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code -1073741571

I had that config since 2 days ago without any issue. I can't give myself peace of mind how it could happen.

Memory Limit i have right now is:

A:\PhpstormProjects\elica(main -> origin)
λ php -i | grep memory_limit
memory_limit => -1 => -1
bedoz commented 3 months ago

mh strage thing... i tried to remove other packages and keep "common" installed. Maybe a bug of package:discover i think. with less package installed it works again.

andrey-helldar commented 3 months ago

It's a very strange problem. I will come back later and try again to reproduce or find a logging method.

andrey-helldar commented 3 months ago

@bedoz, try replacing the vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php file with the following (it has added try-catch to the build method. It is responsible for processing packages in the package:discover console command (vendor/laravel/framework/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php:36)):

Details ```php files = $files; $this->basePath = $basePath; $this->manifestPath = $manifestPath; $this->vendorPath = Env::get('COMPOSER_VENDOR_DIR') ?: $basePath.'/vendor'; } /** * Get all of the service provider class names for all packages. * * @return array */ public function providers() { return $this->config('providers'); } /** * Get all of the aliases for all packages. * * @return array */ public function aliases() { return $this->config('aliases'); } /** * Get all of the values for all packages for the given configuration name. * * @param string $key * @return array */ public function config($key) { return collect($this->getManifest())->flatMap(function ($configuration) use ($key) { return (array) ($configuration[$key] ?? []); })->filter()->all(); } /** * Get the current package manifest. * * @return array */ protected function getManifest() { if (! is_null($this->manifest)) { return $this->manifest; } if (! is_file($this->manifestPath)) { $this->build(); } return $this->manifest = is_file($this->manifestPath) ? $this->files->getRequire($this->manifestPath) : []; } /** * Build the manifest and write it to disk. * * @return void */ public function build() { $packages = []; if ($this->files->exists($path = $this->vendorPath . '/composer/installed.json')) { try { $installed = json_decode($this->files->get($path), true); $packages = $installed['packages'] ?? $installed; } catch (Throwable $e) { $this->throwError('composer/installed.json', $e); } } try { $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore()); } catch (Throwable $e) { $this->throwError('packagesToIgnore', $e); } $this->write( collect($packages)->mapWithKeys(function ($package) { try { return [$this->format($package['name']) => $package['extra']['laravel'] ?? []]; } catch (Throwable $e) { $this->throwError('extra.laravel', $e); } })->each(function ($configuration) use (&$ignore) { try { $ignore = array_merge($ignore, $configuration['dont-discover'] ?? []); } catch (Throwable $e) { $this->throwError('dont-discover', $e); } })->reject(function ($configuration, $package) use ($ignore, $ignoreAll) { try { return $ignoreAll || in_array($package, $ignore); } catch (Throwable $e) { $this->throwError('ignore', $e); } })->filter()->all() ); } /** * Format the given package name. * * @param string $package * @return string */ protected function format($package) { return str_replace($this->vendorPath.'/', '', $package); } /** * Get all of the package names that should be ignored. * * @return array */ protected function packagesToIgnore() { if (! is_file($this->basePath.'/composer.json')) { return []; } return json_decode(file_get_contents( $this->basePath.'/composer.json' ), true)['extra']['laravel']['dont-discover'] ?? []; } /** * Write the given manifest array to disk. * * @param array $manifest * @return void * * @throws \Exception */ protected function write(array $manifest) { if (! is_writable($dirname = dirname($this->manifestPath))) { throw new Exception("The {$dirname} directory must be present and writable."); } $this->files->replace( $this->manifestPath, 'getMessage(), $e->getFile().':'.$e->getLine(), ); } } ```

And run the composer update console command. See what it comes up with.

andrey-helldar commented 2 months ago

@bedoz, hi! Any luck with the problem?

bedoz commented 2 months ago

Hi @andrey-helldar not at the moment... because the issue come first and also with that changes i have no log. i tried also adding a dd() as first line of that command, no luck, no dd printed.

i'm going to investigate more on this, these days.

thank you for your help, i'll keep you informed if i find something else.

andrey-helldar commented 2 months ago

Okay. I'll be waiting. I have not been able to reproduce the problem, but would like to know the cause of the problem.

github-actions[bot] commented 1 month ago

There has been no activity on this issue for a long time, so we are closing it.

In case your problem is actual, you can create a new issue.

Thank you!