Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

[Error] Call to undefined method Symfony\Component\Console\Helper\QuestionHelper::getInputStream() #202

Closed
hulupiao opened this issue Nov 13, 2018 · 5 comments

Comments

@hulupiao
Copy link

hulupiao commented Nov 13, 2018

Q A
Issue Type Bug, Question, Feature Request
Deployer Version 6.3.0
Recipes Version ^6.1
Local Machine OS MacOS Mojave
Remote Machine OS ubuntu18

Description

$ dep --file=./.ci/deployer/deploy.php config:hosts Test -vvv

[Error] Call to undefined method Symfony\Component\Console\Helper\QuestionHelper::getInputStream()

#0 phar:///usr/local/bin/dep/vendor/symfony/console/Application.php(145):
Symfony\Component\Console\Application->configureIO(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 phar:///usr/local/bin/dep/src/Deployer.php(331):
Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/dep/bin/dep(119): Deployer\Deployer::run('6.3.0', '/data/www/ret/a...')
#3 /usr/local/bin/dep(4): require('phar:///usr/loc...')
#4 {main}

Steps to reproduce

Content of deploy.php

CONTENT
@hulupiao
Copy link
Author

composer global require deployer/recipes --dev

if copy rsync to my project dir, and require in deploy.php , has no problem.

@antonmedv
Copy link
Member

What is symfony console version?

@hulupiao
Copy link
Author

hulupiao commented Nov 28, 2018

What is symfony console version?
@antonmedv

cat ~/.composer/vendor/symfony/console/CHANGELOG.md
CHANGELOG

4.1.0

@rutgerrademaker
Copy link

FYI, I ran into a similar issue today
I have both Deployer (v6.4.3) and Deployer recipes (6.2.1) installed (globally)
Deployer requires "symfony/console": "~2.7|~3.0|~4.0"
As a result symfony/console:4.2.0 gets installed and my recipe fails on calling dep with

 [Error] Call to undefined method Symfony\Component\Console\Helper\QuestionHelper::getInputStream()  

If I manually require symfony/console:^3 (which results in installing v3.4.21) I can use my recipe again.
Have not found the root-cause yet

@johnny-bit
Copy link
Contributor

According to symfony/console changelog @ https://github.com/symfony/console/blob/master/CHANGELOG.md getInputStream was removed in v 4.0.0

@hulupiao hulupiao closed this as completed Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants