Skip to content

fix: report no generator found for a string that is not a namespace - #900

Merged
mshima merged 2 commits into
yeoman:mainfrom
mshima:generator-path-messages
Dec 3, 2026
Merged

mshima merged 2 commits into
yeoman:mainfrom
mshima:generator-path-messages

Conversation

@mshima

@mshima mshima commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

What

Follow-up of #898. create() of a string that is not a namespace, and that findMeta() does not resolve as the path of a generator, reports:

No generator found at "<string>": it is not a namespace, nor the path of a generator.

instead of The local generator "<string>" does not exist., which was not true for a path that exists without a generator (a folder without an index file), nor for a string that is not a path (MyGen, foo bar).

The message changes only: whether a string is a namespace or a path is still decided by toNamespace() and findMeta(), with no other check.

Tests

🤖 Generated with Claude Code

A string that is neither a namespace nor resolved as the path of a
generator was reported as a local generator that does not exist, also
for a path that exists without a generator, or a string that is not a
path. Report that no generator is found there, which is true in each
case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mshima
mshima force-pushed the generator-path-messages branch from 0a57001 to c4f4709 Compare December 3, 2026 23:20
@mshima mshima changed the title fix: tell a path without a generator and an invalid namespace apart fix: report no generator found for a string that is not a namespace Dec 3, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mshima
mshima merged commit 37c135a into yeoman:main Dec 3, 2026
16 checks passed
@mshima
mshima deleted the generator-path-messages branch December 3, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant