terminus-plugin-project / terminus-pancakes-plugin

Terminus Plugin to open Pantheon Site Databases in your Favorite SQL Client
MIT License
26 stars 19 forks source link

Not (yet) compatible with Terminus 3.x #33

Open dalin- opened 2 years ago

dalin- commented 2 years ago
 $ terminus self:plugin:install terminus-plugin-project/terminus-pancakes-plugin
 [notice] Installed terminus-plugin-project/terminus-pancakes-plugin.
 [notice]

~/.terminus/plugins took 10s
 $ terminus self:plugin:list
PHP Warning:  include(/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

Warning: include(/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13
PHP Warning:  include(): Failed opening '/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.4/7.4.19_1/share/php@7.4/pear') in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

Warning: include(): Failed opening '/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.4/7.4.19_1/share/php@7.4/pear') in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13
 -------------------------- ----------------------------------------------------------------------------- ------------------- ---------------- -----------------
  Name                       Description                                                                   Installed Version   Latest Version   Compatible With
 -------------------------- ----------------------------------------------------------------------------- ------------------- ---------------- -----------------
  terminus-pancakes-plugin   Terminus Plugin to open Pantheon Site Databases in your Favorite SQL Client   2.0.0               2.0.0            ^1.9|^2
 -------------------------- ----------------------------------------------------------------------------- ------------------- ---------------- -----------------

Let's see if it works anyway

$ terminus pc <my-site>.<a-multidev>
PHP Warning:  include(/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

Warning: include(/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13
PHP Warning:  include(): Failed opening '/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.4/7.4.19_1/share/php@7.4/pear') in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13

Warning: include(): Failed opening '/Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/../../vendor/autoload.php' for inclusion (include_path='.:/usr/local/Cellar/php@7.4/7.4.19_1/share/php@7.4/pear') in /Users/dave/.terminus/terminus-dependencies-2512c16/vendor/terminus-plugin-project/terminus-pancakes-plugin/src/Commands/PancakesCommand.php on line 13
 [error]  HTTP request has failed with error "Maximum retry attempts reached".
vinmassaro commented 2 years ago

Upgrading to Terminus 3.0.3 allows it to work, but it still will generate those warnings.

joelsteidl commented 2 years ago

FWIW, removing include __DIR__ . DIRECTORY_SEPARATOR . '../..' . DIRECTORY_SEPARATOR . 'vendor/autoload.php'; on line 13 clears up the error and it still works as expected. Using Terminus 3.0.3

vinmassaro commented 2 years ago

FWIW, removing include __DIR__ . DIRECTORY_SEPARATOR . '../..' . DIRECTORY_SEPARATOR . 'vendor/autoload.php'; on line 13 clears up the error and it still works as expected. Using Terminus 3.0.3

Thanks! Looks like this was committed but a new release is not out yet.

philoSurfer commented 2 years ago

It now works with Terminus 3.

just use: terminus self:plugin:install terminus-plugin-project/terminus-pancakes-plugin

PR for documentation update: https://github.com/terminus-plugin-project/terminus-pancakes-plugin/commit/02c92c29fad478f7746736301235012ccdb45df5