/
[console] Command dependencies not loaded when auto-completing [5.3.0-B1]

[console] Command dependencies not loaded when auto-completing [5.3.0-B1]

The "AbstractCommand::initialize" method isn't called from "CompletionAwareInterface::completeOptionValues" and "CompletionAwareInterface::completeArgumentValues" methods and therefore command dependencies stay uninitialized during auto-completion process.

Solution

  1. create the "AbstractCommand::initDependencies" method
  2. make "AbstractCommand" implement the "CompletionAwareInterface" and in each method:
    1. call the "initDependencies" method
    2. return empty suggestions list
  3. call "initDependencies" method from "initialize" method as well.

Related Tasks

INP-1485 - Getting issue details... STATUS