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

DX-5184: BLT 13.5.2 New Project Error #4618

Closed
mikemadison13 opened this issue Oct 27, 2022 · 3 comments · Fixed by #4620
Closed

DX-5184: BLT 13.5.2 New Project Error #4618

mikemadison13 opened this issue Oct 27, 2022 · 3 comments · Fixed by #4620
Labels
Bug Something isn't working

Comments

@mikemadison13
Copy link
Contributor

Describe the bug
Starting a new project throws:

Fatal error: Uncaught Error: Class "Webmozart\PathUtil\Path" not found in /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/src/Robo/Commands/Blt/UpdateCommand.php:123
Stack trace:
#0 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/src/Robo/Commands/Blt/UpdateCommand.php(61): Acquia\Blt\Robo\Commands\Blt\UpdateCommand->initGitignore()
#1 [internal function]: Acquia\Blt\Robo\Commands\Blt\UpdateCommand->addToProject(Array)
#2 /Users/mike.madison/git/examples/blt-error/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#3 /Users/mike.madison/git/examples/blt-error/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /Users/mike.madison/git/examples/blt-error/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /Users/mike.madison/git/examples/blt-error/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /Users/mike.madison/git/examples/blt-error/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /Users/mike.madison/git/examples/blt-error/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/src/Robo/Application.php(31): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /Users/mike.madison/git/examples/blt-error/vendor/symfony/console/Application.php(273): Acquia\Blt\Robo\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /Users/mike.madison/git/examples/blt-error/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /Users/mike.madison/git/examples/blt-error/vendor/consolidation/robo/src/Runner.php(282): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/src/Robo/Blt.php(264): Robo\Runner->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Acquia\Blt\Robo\Application), Array)
#13 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/bin/blt-robo-run.php(35): Acquia\Blt\Robo\Blt->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/bin/blt-robo.php(15): require_once('/Users/mike.mad...')
#15 /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/bin/blt(11): require_once('/Users/mike.mad...')
#16 {main}
  thrown in /Users/mike.madison/git/examples/blt-error/vendor/acquia/blt/src/Robo/Commands/Blt/UpdateCommand.php on line 123

To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:

  1. Run composer create-project acquia/drupal-recommended-project
  2. add blt with composer require acquia/blt
  3. See error

Expected behavior
Not this.

@mikemadison13 mikemadison13 added the Bug Something isn't working label Oct 27, 2022
@github-actions github-actions bot changed the title BLT 13.5.2 New Project Error DX-5184: BLT 13.5.2 New Project Error Oct 27, 2022
@mikemadison13
Copy link
Contributor Author

My hunch is that this was caused by Drush resolving drush-ops/drush#5279

mikemadison13 added a commit to mikemadison13/blt that referenced this issue Oct 27, 2022
mikemadison13 added a commit to mikemadison13/blt that referenced this issue Oct 27, 2022
@mikemadison13
Copy link
Contributor Author

@danepowell this didn't fail during our testing because it looks like we are still adding webmozart in the orca builds for some reason, see https://github.com/acquia/blt/actions/runs/3341174700/jobs/5532108317#step:6:245. At first glance, i'm not sure why / how that is.

@mikemadison13
Copy link
Contributor Author

we are blocked from "fixing" this by applying the symfony/filesystem approach that drush took on due to the incompatibility with drupal/core-dev and the newer version of consolidation/site-alias (and symfony/filesystem). so, it seems like the only choice is to include webmozart as a dependency of blt at this time. thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant