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

drupal console (dev) fails if Drupal is not yet installed #4048

Closed
mondrake opened this issue May 21, 2019 · 3 comments · Fixed by #4055 or hechoendrupal/drupal-console-core#351
Closed

Comments

@mondrake
Copy link
Contributor

mondrake commented May 21, 2019

I am trying to install a Drupal instance from scratch using the dev branches of both console and console-core

I'm getting the following error even by just calling drupal:

console.multisite_new - You have requested a non-existent service "console.validator".

In ContainerBuilder.php line 1063:
                                                      
  You have requested a non-existent service "state".  

Everything works just fine if I run the command on an already installed Drupal instance.

@mondrake mondrake changed the title drupal console fails if Drupal is not yet installed drupal console (dev) fails if Drupal is not yet installed May 21, 2019
@mondrake
Copy link
Contributor Author

With --debug on,

$ sudo vendor/bin/drupal --debug
Drupal Console version 1.8.0
Per-Site path: /var/www/html/d8test/vendor/drupal/console/bin/drupal

✔ Creating request
✔ Creating Drupal kernel
✔ Registering dynamic services
➤ Rebuilding container
console.multisite_new - You have requested a non-existent service "console.validator".

In ContainerBuilder.php line 1063:
                                                      
  You have requested a non-existent service "state".  
                                                      ```

@enzolutions
Copy link
Contributor

@harold20 found a solution, we will submit a PR for this tomorrow.

@hjuarez20
Copy link
Contributor

The PRs are ready @enzolutions and @mondrake

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