Skip to content

no-emitter-name

Id
@azure-tools/typespec-client-generator-core/no-emitter-name

Severity: warning

This diagnostic is issued when TCGC cannot determine the emitter’s language because no usable emitter name is available (for example, the emitter name is missing or does not match the expected *-<language> pattern).

  • Area: TCGC host and tooling configuration. Generation falls back to an unknown emitter scope, which can make language-scoped decorators and names resolve incorrectly.
  • Not affected: The TypeSpec service model is not changed by the missing option.

TCGC reports:

Can not find name for your emitter, please check your emitter name.

Make sure the emitter is invoked with a resolvable package name (such as @azure-tools/typespec-csharp) so TCGC can derive the target language.

This diagnostic should not be suppressed. Run TCGC with a proper emitter name and check the usage so language scope can be resolved.