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
When calling macros like Ecto.Query, you often end up with an error message that can be cryptic, especially with beginners.
For example, the following code without adding require Ecto.Query.
Ecto.Query.fromrowinTable,where: row.name=="fred"
will produce error: undefined variable "row"
This should be an error, but I think that a hint here would go a long way towards helping users understand what needs to happen.
Desired behavior
In this situation, the compiler should check to see if it is within a remote call to a macro that has not been required, and if so provide a helpful message to the user, something along the lines of: