Skip to content

generate:module gives Fatal error: Call to a member function getPath() #4118

@liquidcms

Description

@liquidcms

[ ISSUE-GROUP ] Short description

The ISSUE-GROUP should be one of:
generate:module

Problem/Motivation

Just set up console and tried to run gm command.

drupal generate:module
--module="Qleva"
--machine-name="qleva"
--module-path="/modules"
--description="Custom functions for Qleva mini-site."
--core="8.x"
--package="Qleva"
--module-file

gives:
Fatal error: Call to a member function getPath() on null in E:\www\drupal8a\vendor\drupal\console\src\Generator\ComposerGenerator.php on line 46

Details to include:

  • Why are we doing this? Above all, a summary should explain why a change is needed, in a few short sentences.

How to reproduce

Include steps related how to reproduce.

Details to include:

  • Drupal version (you can obtain this by running drupal site:status).
    8.7.3
  • Console version (you can obtain this by running composer show | grep drupal/console).
    1.9.1
  • Console Launcher version (you can obtain this by running outside of a drupal site drupal --version).
    1.9.1
  • Steps to reproduce
    drupal generate:module
    --module="Qleva"
    --machine-name="qleva"
    --module-path="/modules"
    --description="Custom functions for Qleva mini-site."
    --core="8.x"
    --package="Qleva"
    --module-file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions