You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a simpler example that reproduces the same problem:
defmoduleLevel.Resources.ProvisionUserdo@moduledoc""" Provisions a user account. """useAsh.ReactoraliasLevel.Resources.OnboardingCodeashdodefault_domainLevelendinput:coderead_one:onboarding_code,OnboardingCode,:by_codedoinputs(%{code: input(:code)})endswitch:has_codedoonresult(:onboarding_code)matches?&(notis_nil(&1))dodebug:debugdoargument:onboarding_code,result(:onboarding_code)endendendreturn:onboarding_codeend
Generates the following error:
(Reactor.Error.Internal.PlanError) # Reactor Plan Error
An error occurred while building or updating the Reactor execution graph.
Step :debug depends on the result of a step named :onboarding_code which cannot be found
Describe the bug
The code below fails to compile (after a mix clean). Error:
The execution graph cannot find a step outside the switch statement when using the
result
template helper.To Reproduce
Reactor.run(SwitchReactor, %{value: "zen"})
Expected behavior
The inner switch step should be able to use the result template helper.
Runtime
Additional context
After multiple compilations at some point it started to work, but once I did a
mix clean
it failed again to compile.The text was updated successfully, but these errors were encountered: