When tried to use Drush the first time I got the error message "Drush command could not be completed".
Neither verbose nor debugging mode gave me enough information to figure out what the problem was.
Googling around turned out the problem was that Gentoo does not include "SimpleXML"-support as the default setting.

I possible improvement could be to run something like this during bootstrapping:

if [ "$(php -m | grep -c SimpleXML)" -eq 0 ]; then echo "You don't have simplexml support in php"; fi

Comments

greg.1.anderson’s picture

This should go at the end, after failure, so that every command does not take a performance hit for the SimpleXML check.

Patches welcome.

Letharion’s picture

I will have a look at it. Wanna give me a hint on what files/functions I should start looking at to get handle on the error handling?

greg.1.anderson’s picture

"Drush command could not be completed" is in drush.php around line 154. It would be appropriate to put diagnostic checks here to help the user figure out why their system is not working.

greg.1.anderson’s picture

Version: All-Versions-2.1 » 8.x-6.x-dev
Component: Code » Base system (internal API)
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.