Closed geekoftheweek closed 5 years ago
Ran into this today. To clarify the compile error is cannot use ^entry_id outside of match clauses
on 4.3, solution is
/append_only_log.ex
alias Append.Repo
require Ecto.Query
...
defmacro __before_compile__(_env) do
quote do
import Ecto.Query
...
This issue was resolved in https://github.com/dwyl/phoenix-ecto-append-only-log-example/pull/24
@bmartin2015 thanks again for the PR! 🎉 (closing this issue. if still required, please re-open with comment) 👍
In 4.3 Update when
get(id)
is first changed toget(entry_id)
, the use offrom/2
causes compilation errors unlessEcto.Query
is required and imported. This require and import gets added later in 4.4 Get History, but running into these unexpected error messages was very confusing for me as an Elixir n00b trying to follow along.