Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Diagnostic code · ARA0705

Invalid command shape

A [Command] class has an Execute signature the generator cannot bind to a typed command. Compilation fails; the last good module keeps running and the new command is not registered.

Common causes

  • Execute is missing, is not static, does not return CommandResult, or does not begin with ref CommandContext.
  • A component parameter has no target Entity parameter.
  • A non-component argument after the context is passed by ref or in.

Fixes

  • Use public static CommandResult Execute(ref CommandContext ctx, Entity target, ...) and place the target before its component parameters.

  • Pass component arguments by ref or in as needed and ordinary serialized arguments by value.

  • Code: ARA0705

  • Constant: cs::BAD_COMMAND

  • Reported by: Ara.Generators