Skip to content

Hangs when running mozart compose #156

@artulloss

Description

@artulloss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions