boonebgorges / wp-cli-git-helper

Git helper for wp-cli
35 stars 5 forks source link

conflict with Wordpress tab completion in .bash_profile #10

Open HughP opened 7 years ago

HughP commented 7 years ago

Greetings, am exploring what it means to us WP-CLI. I chose to install the bash tab for completion script mentioned in the cli handbook here: https://make.wordpress.org/cli/handbook/installing/#tab-completions

When this is installed and I then use cli to install wp-cli-git-helper I get the following error.

I am wondering if the error unique to my setup or if this configuration also causes others to error.

PHP Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /home/greenlantern/.wp-cli/packages/vendor/boonebgorges/wp-cli-git-helper/wp-cli-git-helper.php on line 4 PHP Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='phar:///usr/local/bin/wp/vendor/phpunit/php-token-stream:phar:///usr/local/bin/wp/vendor/phpunit/phpunit-mock-objects:phar:///usr/local/bin/wp/vendor/phpunit/php-code-coverage:phar:///usr/local/bin/wp/vendor/phpunit/phpunit:phar:///usr/local/bin/wp/vendor/symfony/yaml:.:/usr/share/php') in /home/greenlantern/.wp-cli/packages/vendor/boonebgorges/wp-cli-git-helper/wp-cli-git-helper.php on line 4

all the best,

boonebgorges commented 7 years ago

Hi there - Sorry for the troubles. I ran into some issues when building the Composer dependencies for this command, which are outlined somewhat at https://github.com/boonebgorges/wp-cli-git-helper/issues/9. For the time being, if you want to run this command, I recommend installing it as a Git checkout rather than via wp package.