Skip to content

Throws fatal error if main config folder doesn't exist #14

Description

@beloglazov91

After installing so-sli package on Linux OS and calling so command I've got the following problem:

➜  ~ so
PHP Fatal error:  Uncaught RuntimeException: /home/beloglazov91/.config/so-cli is not a directory in /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/Configuration.php:102
Stack trace:
#0 /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/Configuration.php(127): SoCli\Configuration->getCommandConfigFiles()
#1 /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/CommandManager.php(90): SoCli\Configuration->loadCommandConfigFiles()
#2 /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/CommandManager.php(36): SoCli\CommandManager->getCommandsFromFolder()
#3 /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/CommandManager.php(60): SoCli\CommandManager->getGlobalCommands()
#4 /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/so(47): SoCli\CommandManager->getCommands()
#5 {main}
  thrown in /home/beloglazov91/.config/composer/vendor/systemseed/so-cli/src/Configuration.php on line 102

When I created ~/.config/so-cli manually that error disappeared.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions