Troubleshooting — EricksonLopez.Processes
Common analyzer, generator, and API issues in EricksonLopez.Processes (2.0.0).
PROC003: Missing Terminal Transition in [ProcessDefinition] / [SagaDefinition]
Section titled “PROC003: Missing Terminal Transition in [ProcessDefinition] / [SagaDefinition]”ProcessTransitionAnalyzer (PROC003) emits a compiler warning (fatal under TreatWarningsAsErrors=true) if a process or saga uses non-terminal transitions (Advance, Suspend, Compensate) without at least one reachable terminal transition (Complete, Fail, or Compensated). Ensure every saga/process defines a terminal handler branch.
CS1739 on ProcessTransitionResult<TState>.Compensate(..., reason: ...)
Section titled “CS1739 on ProcessTransitionResult<TState>.Compensate(..., reason: ...)”ProcessTransitionResult<TState>.Compensate(TState state, IEnumerable<CompensationAction>? compensationActions = null) does not accept a reason parameter. Supply only state and optional compensationActions.
Processes.Generator CS1061 (AddSingleton) Under ImplicitUsings=disable
Section titled “Processes.Generator CS1061 (AddSingleton) Under ImplicitUsings=disable”EricksonLopez.Processes.Generator emits GeneratedProcessRegistryExtensions.g.cs calling services.AddSingleton(...) inside namespace EricksonLopez.Processes.Generated; without an explicit using Microsoft.Extensions.DependencyInjection; directive. In projects with <ImplicitUsings>disable</ImplicitUsings>, either add a global using Microsoft.Extensions.DependencyInjection; file or register ProcessRegistry explicitly via services.AddProcesses() without referencing EricksonLopez.Processes.Generator.