astorm / pestle

A collection of command line scripts for Magento 2 code generation, and a PHP module system for organizing command line scripts.
MIT License
533 stars 101 forks source link

Initial Run is Failing #509

Open astormnewrelic opened 4 years ago

astormnewrelic commented 4 years ago

PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/Users/astorm/pestle_modules/modules/): failed to open dir: No such file or directory in phar:///Users/astorm/Documents/github_datanerds/NodeJS-agent/nodejs_agent/pestle.phar/modules/pulsestorm/cli/build_command_list/module.php:21

astorm commented 4 years ago

Looks like this boils down to the ~/.pestle/module-folders.json folder. If this folder points to a path that doesn't have a modules subfolder, pestle explodes with the above error. We should do something more graceful here.

$ cat ~/.pestle/module-folders.json
{
    "module-folders":[
"/path/without/a/module/subfolder",
    ]
}