Skip to content

[NFR]: Name the missing directory when config inference fails #18

Description

@niden

Goal: when crest cannot infer the project configuration, say which directory is missing.

With no crest.php, crest reads the psr-4 map in composer.json and uses the first entry whose directory exists. A project with a composer.json but no src/ fails with:

no crest.php and no usable psr-4 autoload entry found

The message does not say that a missing directory is the cause. Found by hand-testing the generators.

  • Name the psr-4 directories that do not exist in the message (src/Project/Config.php, infer())
  • A test asserts the new message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

  • Status
    Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions