Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony ProcessBuilder not found when running couscous preview #221

Closed
ieschwoch opened this issue Aug 29, 2018 · 0 comments
Closed

Symfony ProcessBuilder not found when running couscous preview #221

ieschwoch opened this issue Aug 29, 2018 · 0 comments
Labels

Comments

@ieschwoch
Copy link

ieschwoch commented Aug 29, 2018

I downloaded Couscous using compose per the instructions at http://couscous.io/docs/getting-started.html and I get the below error when running "couscous preview":

PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /Users/ieschwoch/.composer/vendor/couscous/couscous/src/Application/Cli/PreviewCommand.php:169
Stack trace:
#0 /Users/ieschwoch/.composer/vendor/couscous/couscous/src/Application/Cli/PreviewCommand.php(112): Couscous\Application\Cli\PreviewCommand->startWebServer(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), '/Users/ieschwoch/...')
#1 /Users/ieschwoch/.composer/vendor/symfony/console/Command/Command.php(251): Couscous\Application\Cli\PreviewCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /Users/ieschwoch/.composer/vendor/symfony/console/Application.php(886): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/ieschwoch/.composer/vendor/symfony/console/Application.php(262): Symfony\Component\Consol in /Users/ieschwoch/.composer/vendor/couscous/couscous/src/Application/Cli/PreviewCommand.php on line 169

Versions running (not sure why the couscous version isn't populating):

composer --version
Composer version 1.7.2 2018-08-16 16:57:12

couscous --version
Console Tool

Update: I found that removing Symfony 4.0 support in this line resolves the problem. I think changing the includes from "ProcessBuilder" to "Process" will fix this also as I've seen this work in other projects.

"symfony/process": "~2.6|~3.0|~4.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants