Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hangs when running mozart compose #156

Open
artulloss opened this issue Sep 20, 2024 · 1 comment
Open

Hangs when running mozart compose #156

artulloss opened this issue Sep 20, 2024 · 1 comment

Comments

@artulloss
Copy link

Running mozart compose seems to hang for me. I am using an M1 mac if that is relevant. I installed Mozart globally with Composer.

PHP Version

PHP 8.2.23 (cli) (built: Aug 27 2024 15:32:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.23, Copyright (c) Zend Technologies
with Zend OPcache v8.2.23, Copyright (c), by Zend Technologies

It also seems to be using a lot of memory and CPU (removed memory limits) ...

Screenshot 2024-09-20 at 12 25 31 PM Screenshot 2024-09-20 at 12 26 00 PM

Memory usage gradually gets worse

Screenshot 2024-09-20 at 12 32 51 PM

My composer.json is as follows:

{
  "require-dev": {
    "phpstan/phpstan": "^1.8",
    "szepeviktor/phpstan-wordpress": "^1.1",
    "phpstan/extension-installer": "^1.1"
  },
  "config": {
    "allow-plugins": {
      "phpstan/extension-installer": true
    },
    "platform": {
      "php": "8.2"
    }
  },
  "require": {
    "setasign/fpdf": "1.8.*",
    "setasign/fpdi": "^2.0",
    "eluceo/ical": "^2.14",
    "tecnickcom/tcpdf": "^6.7.5",
    "spatie/flysystem-dropbox": "^2.0",
    "league/flysystem": "^3.28.0",
    "guzzlehttp/guzzle": "^7.9.2",
    "ext-json": "*",
    "ext-curl": "*",
    "symfony/dotenv": "^7.1",
    "ext-zip": "*"
  },
  "autoload": {
    "psr-4": {
      "Redacted\\": "src/",
      "Redacted\\Dependencies\\": "src/Dependencies/"
    },
    "classmap": [
      "src/Dependencies/Classes/"
    ],
    "files": [
      "src/Utilities/tcpdf_config.php"
    ]
  },
  "extra": {
    "mozart": {
      "dep_namespace": "Redacted\\Dependencies\\",
      "dep_directory": "src/Dependencies/",
      "classmap_directory": "src/Dependencies/Classes/",
      "classmap_prefix": "Redacted_",
      "excluded_packages": [
        "phpstan/phpstan",
        "szepeviktor/phpstan-wordpress",
        "phpstan/extension-installer"
      ],
      "override_autoload": {},
      "delete_vendor_directories": true
    }
  },
  "scripts": {
    "post-install-cmd": [
      "mozart compose",
      "composer dump-autoload"
    ],
    "post-update-cmd": [
      "mozart compose",
      "composer dump-autoload"
    ]
  }
}

In terms of my files, nothing seems to be happening. I assume it moves prefixed dependencies to dep_directory? I'm wondering if I've set something up incorrectly or if this is a problem with Mozart. Any help would be appreciated, as Mozart seems preferable to the other solutions for dependency prefixing.

@sersart
Copy link

sersart commented Feb 9, 2025

Hi,
I have same situations. Do you find any solutions.
Please let me know.
Thanks

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@sersart @artulloss and others