Skip to content

Suggestion: Add FAQ entry for "Class not found" error after updating moosh #559

@michael-milette

Description

@michael-milette

Hi @tmuras,

After pulling the latest version of moosh from GitHub (I was still on v1.13), I encountered the following fatal error when running moosh --help:

The fix is to regenerate the Composer autoload classmap from the moosh directory:

composer dump-autoload

This happens because when new command classes are added between releases, the cached classmap in [autoload_classmap.php] doesn't include them until composer dump-autoload is run.

This is not currently documented in the README or the FAQ. I would suggest adding it to https://moosh-online.com/faq/ to save others from confusion or thinking that moosh doesn't work.

Best regards,

Michael Milette

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions