Description
Module will not uninstall completely
Preconditions
Magento version 2.1.5
PHP 5.6.30
MySQL: Server version: 5.7.17-11 Percona Server
Steps to reproduce
- Install module via composer successfully.
- Run magento/bin module:uninstall "my/module"
Expected result
- Module and dependencies should be removed including database and code
Actual result
Uninstalling a module will remove the entry from composer.json, and run the database uninstall scripts, but when it attempts to remove the code it hangs with message "removing code from Magento codebase:" . One thing to note is our module has its own composer.json file where it requires and installed another codebase. The module is being installed from our own satis server .
vendor/magento/framework/Composer/Remove.php, Magento tries to run 'remove' composer command.
runComposerCommand() method can be found here: vendor/magento/composer/src/MagentoComposerApplication.php
it gets stuck on line $exitCode = $this->consoleApplication->run($input, $this->consoleOutput);
FYI manually executing the command "composer remove my/module" works successfully.