8000 [DX][Console] With many commands, registration warnings are not visible · Issue #26203 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DX][Console] With many commands, registration warnings are not visible #26203
Closed
@mhujer

Description

@mhujer
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.0.4

Steps to reproduce

  1. create a command e.g. system:clear-logs
  2. forget to call parent::__construct();
  3. run bin/console
  4. command is not listed in the available commands
  5. no warning is visible (but it is reported correctly, read on)

Output:
image

The warning is printed correctly, but is like two screens of scrolling above. And it looked more like a Command registration issue, so there was no reason to scroll up. I discovered it by accident, after checking the DI configuration, trying manually tagging the command etc.

image

Idea 1: Move the command registration warnings bellow the command output. (At least for the "default" command)

Idea 2: Change the warning to exception. I think it is kind of similar to missing scalar constructor parameter, which throws an exception.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleDXDX = Developer eXperience (anything that improves the experience of using Symfony)Feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0