Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DrupalConsole should guess HOME environment variable #3612

Closed
novia713 opened this issue Dec 2, 2017 · 2 comments
Closed

DrupalConsole should guess HOME environment variable #3612

novia713 opened this issue Dec 2, 2017 · 2 comments

Comments

@novia713
Copy link
Contributor

novia713 commented Dec 2, 2017

DrupalConsole should guess HOME environment variable

This is the error it throws when it can't find HOME environment variable

[email protected]   master U:1  ~/root/html/api_nexum  drupal cr all
PHP Fatal error:  Uncaught RuntimeException: Your environment or operation system isn't supported in phar:///usr/local/bin/drupal/vendor/webmozart/path-util/src/Path.php:257
Stack trace:
#0 phar:///usr/local/bin/drupal/vendor/drupal/console-core/src/Utils/ConfigurationManager.php(48): Webmozart\PathUtil\Path::getHomeDirectory()
#1 phar:///usr/local/bin/drupal/vendor/drupal/console-core/src/Bootstrap/DrupalConsoleCore.php(65): Drupal\Console\Core\Utils\ConfigurationManager->loadConfiguration('phar:///usr/loc...')
#2 phar:///usr/local/bin/drupal/bin/drupal.php(40): Drupal\Console\Core\Bootstrap\DrupalConsoleCore->boot()
#3 phar:///usr/local/bin/drupal/bin/drupal(3): require('phar:///usr/loc...')
#4 /usr/local/bin/drupal(10): require('phar:///usr/loc...')
#5 {main}
  thrown in phar:///usr/local/bin/drupal/vendor/webmozart/path-util/src/Path.php on line 257

@jmolivas can you suggest a library to handle this?
i would like to solve this problem.

@jmolivas
Copy link
Member

jmolivas commented Dec 4, 2017

@novia713 This issue should be fixed at the https://github.com/hechoendrupal/drupal-console-core repository

We are already using the https://github.com/webmozart/path-util package and can be fixed by:

use Webmozart\PathUtil\Path;

Path::getHomeDirectory();

@novia713
Copy link
Contributor Author

novia713 commented Dec 4, 2017

opened hechoendrupal/drupal-console-core#255
i close this issue

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

No branches or pull requests

2 participants