Skip to content

Fix errors from invalid YAML #4296

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

Merged
merged 2 commits into from
Sep 15, 2021
Merged

Conversation

jeffm2001
Copy link
Contributor

On a new drupal install, I was getting errors for any console command I tried to run.

[ERROR] A "tags" entry must be an array for service "console.generate_ajax" in
         /app/vendor/drupal/console//config/services/generate.yml. Check your YAML syntax.
[ERROR] A "tags" entry must be an array for service "console.ajax_command_generator" in
         /app/vendor/drupal/console//config/services/generator.yml. Check your YAML syntax.

The culprit turned out to be trailing spaces in the Ajax generate commands. Not sure why this would cause an error, though I guess this is technically invalid YAML. In any case, removing the trailing whitespace resolved the issue.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@LOBsTerr LOBsTerr merged commit aa3d57c into hechoendrupal:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants