Coder Social home page Coder Social logo

drush-psysh's People

Contributors

bobthecow avatar grota avatar jacks0n avatar t0xiccode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

drush-psysh's Issues

don't work drush 8.0.2 #bug

drush drush-psysh --verbose
Declaration of DrushPsysh\DrushCommand::execute() should be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, [notice]
Symfony\Component\Console\Output\OutputInterface $output) DrushCommand.php:226
Undefined index: value DrushCommand.php:165
...
PHP Fatal error: Cannot instantiate interface PhpParser\Parser in /home/d8/.drush/drush_psysh/vendor/psy/psysh/src/Psy/CodeCleaner.php on line 56
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot instantiate interface PhpParser\Parser in /home/d8/.drush/drush_psysh/vendor/psy/psysh/src/Psy/CodeCleaner.php, line 56

Cannot instantiate interface PhpParser\Parse

ยป drush psysh
PHP Fatal error: Cannot instantiate interface PhpParser\Parser in /home/myuser/.drush/drush_psysh/vendor/psy/psysh/src/Psy/CodeCleaner.php on line 56
PHP Stack trace:
PHP 1. {main}() /home/myuser/.composer/vendor/drush/drush/drush.php:0
PHP 2. drush_main() /home/myuser/.composer/vendor/drush/drush/drush.php:12
PHP 3. Drush\Boot\BaseBoot->bootstrap_and_dispatch() /home/myuser/.composer/vendor/drush/drush/includes/preflight.inc:66
PHP 4. drush_dispatch($command = array ('callback' => 'drush_command', 'description' => 'Drupal REPL via psysh', 'aliases' => array (0 => 'shell', 1 => 'repl', 2 => 'psysh'), 'examples' => array ('drush shell' => 'Invokes the Drupal REPL'), 'command' => 'drush-psysh', 'command-hook' => 'drush-psysh', 'invoke hooks' => TRUE, 'callback arguments' => array (), 'commandfile' => 'drush_psysh', 'path' => '/home/myuser/.drush/drush_psysh', 'engines' => array (), 'primary function' => 'drush_psysh_callback', 'sections' => array ('examples' => 'Examples', 'arguments' => 'Arguments', 'options' => 'Options'), 'arguments' => array (), 'required-arguments' => FALSE, 'options' => array (), 'sub-options' => array (), 'allow-additional-options' => FALSE, 'global-options' => array (), 'core' => array (), 'scope' => 'site', 'drush dependencies' => array (), 'handle-remote-commands' => FALSE, 'remote-tty' => FALSE, 'strict-option-handling' => FALSE, 'tilde-expansion' => TRUE, 'bootstrap_errors' => array (), 'topics' => array (), 'hidden' => FALSE, 'category' => 'drush_psysh', 'add-options-to-arguments' => FALSE, 'consolidation-output-formatters' => FALSE, 'annotated-command-callback' => '', 'annotations' => array (), 'drupal dependencies' => array (), 'bootstrap' => 6, 'is_alias' => TRUE, 'argument-description' => array ()), $arguments = uninitialized) /home/myuser/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP 5. call_user_func_array:{/home/myuser/.composer/vendor/drush/drush/includes/command.inc:192}('drush_command', array ()) /home/myuser/.composer/vendor/drush/drush/includes/command.inc:192
PHP 6. drush_command() /home/myuser/.composer/vendor/drush/drush/includes/command.inc:192
PHP 7. _drush_invoke_hooks($command = array ('callback' => 'drush_command', 'description' => 'Drupal REPL via psysh', 'aliases' => array (0 => 'shell', 1 => 'repl', 2 => 'psysh'), 'examples' => array ('drush shell' => 'Invokes the Drupal REPL'), 'command' => 'drush-psysh', 'command-hook' => 'drush-psysh', 'invoke hooks' => TRUE, 'callback arguments' => array (), 'commandfile' => 'drush_psysh', 'path' => '/home/myuser/.drush/drush_psysh', 'engines' => array (), 'primary function' => 'drush_psysh_callback', 'sections' => array ('examples' => 'Examples', 'arguments' => 'Arguments', 'options' => 'Options'), 'arguments' => array (), 'required-arguments' => FALSE, 'options' => array (), 'sub-options' => array (), 'allow-additional-options' => FALSE, 'global-options' => array (), 'core' => array (), 'scope' => 'site', 'drush dependencies' => array (), 'handle-remote-commands' => FALSE, 'remote-tty' => FALSE, 'strict-option-handling' => FALSE, 'tilde-expansion' => TRUE, 'bootstrap_errors' => array (), 'topics' => array (), 'hidden' => FALSE, 'category' => 'drush_psysh', 'add-options-to-arguments' => FALSE, 'consolidation-output-formatters' => FALSE, 'annotated-command-callback' => '', 'annotations' => array (), 'drupal dependencies' => array (), 'bootstrap' => 6, 'is_alias' => TRUE, 'argument-description' => array ()), $args = array ()) /home/myuser/.composer/vendor/drush/drush/includes/command.inc:224
PHP 8. call_user_func_array:{/home/myuser/.composer/vendor/drush/drush/includes/command.inc:373}('drush_psysh_callback', array ()) /home/myuser/.composer/vendor/drush/drush/includes/command.inc:373
PHP 9. drush_psysh_callback() /home/myuser/.composer/vendor/drush/drush/includes/command.inc:373
PHP 10. Psy\Shell->__construct($config = uninitialized) /home/myuser/.drush/drush_psysh/drush_psysh.drush.inc:62
PHP 11. Psy\Configuration->getCodeCleaner() /home/myuser/.drush/drush_psysh/vendor/psy/psysh/src/Psy/Shell.php:74
PHP 12. Psy\CodeCleaner->__construct($parser = uninitialized, $printer = uninitialized, $traverser = uninitialized) /home/myuser/.drush/drush_psysh/vendor/psy/psysh/src/Psy/Configuration.php:706
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot instantiate interface PhpParser\Parser in /home/myuser/.drush/drush_psysh/vendor/psy/psysh/src/Psy/CodeCleaner.php, line 56

drush command from repl

tried to run cc

was told
sh: /usr/share/pear/drush/drush.php: Permission denied

cc all
get's me the following:

PHP Catchable fatal error: Argument 1 passed to DrushPsysh\DrushCommand::execute() must be an instance of DrushPsysh\InputInterface, instance of Symfony\Component\Console\Input\StringInput given, called in /home/btopro/.drush/drush-psysh/vendor/symfony/console/Symfony/Component/Console/Command/Command.php on line 241 and defined in /home/btopro/.drush/drush-psysh/src/DrushCommand.php on line 73

Catchable fatal error: Argument 1 passed to DrushPsysh\DrushCommand::execute() must be an instance of DrushPsysh\InputInterface, instance of Symfony\Component\Console\Input\StringInput given, called in /home/btopro/.drush/drush-psysh/vendor/symfony/console/Symfony/Component/Console/Command/Command.php on line 241 and defined in /home/btopro/.drush/drush-psysh/src/DrushCommand.php on line 73
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Argument 1 passed to DrushPsysh\DrushCommand::execute() must be an instance of
DrushPsysh\InputInterface, instance of Symfony\Component\Console\Input\StringInput given, called in
/home/btopro/.drush/drush-psysh/vendor/symfony/console/Symfony/Component/Console/Command/Command.php
on line 241 and defined in /home/btopro/.drush/drush-psysh/src/DrushCommand.php, line 73

Publish on drupal.org

It would be nice to have drush-psysh released on drupal.org. This will enable easy installation of drush-psysh with the pm-download command. Which is cleaner than cloning a git repo into ~/.drush.

drush-psysh ls --functions error: undefined class constant

Hi,
I installed drush 8.1.12 on my windows 10 machine. I made some modifications to drush.launcher, in order to execute drush commands in a psysh session. So I started typing drush php.l It works and I can execute drupal functions and drush commands. But, when I attempt to list all functions with ls --functions, I receive a fatal error: undefined class constant in signatureformatter.php, line 253.
I have an independant psysh and it works fine.
Now, I don't know psysh source code, so I don't know that I must modify in order to resolve this error. Can help?

error after installation

When I followed the instructions on my local server, no issue. On a staging box when I run
drush @myAlias repl
I get the following error (it prints 3x in a row, same error over and over)

Psy Shell v0.1.0-dev (PHP 5.3.3 โ€” cli) by Justin Hileman
PHP Fatal error: Call to undefined function Psy\ExecutionLoop\posix_getpid() in /home/btopro/.drush/drush-psysh/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php on line 119

Fatal error: Call to undefined function Psy\ExecutionLoop\posix_getpid() in /home/btopro/.drush/drush-psysh/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php on line 119
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function Psy\ExecutionLoop\posix_getpid() in
/home/btopro/.drush/drush-psysh/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php, line 119

Is there a minimum php requirement to run this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.