drush-ops / drush-launcher

A small wrapper around Drush for your global $PATH.
GNU General Public License v2.0
237 stars 50 forks source link

DRUSH 9 SQL:CLI not working with XDEBUG Enabled #68

Closed sean-e-dietrich closed 5 years ago

sean-e-dietrich commented 5 years ago

A few different people have confirmed that when XDebug is enabled and running commands through the launcher for Drush 9 the command hangs up and doesn't actually pass through to the database.

The biggest offender seems to be sql:cli so far.

If you access drush directly through the vendor/bin/drush executable then it works but when using the drush launcher it seems to hang up and not make a connection to the database.

When you disable xdebug then this works.

For Reference: https://github.com/docksal/docksal/issues/795

weitzman commented 5 years ago

Try with latest Drush 9.6 release (or master). We are now using Symfony Process to execute calls like mysql.

weitzman commented 5 years ago

I tested with Drush 9.6.0-rc3 and could not reproduce the problem. I did see it with prior versions of Drush so I think this is fixed.

sean-e-dietrich commented 5 years ago

@weitzman you are correct I tested with 9.6.0-beta3 and it worked fine. Thanks!!

webflo commented 5 years ago

@weitzman Is this another related issue? https://github.com/drush-ops/drush/issues/3309