Skip to content

Conversation

@timgremore
Copy link

@timgremore timgremore commented Apr 27, 2021

Assertions conditionally adds helpers for use with Absinthe.
Assertions.Absinthe utilizes Code.ensure_compiled/1 to manage this
condition. However, undefined function assert_response_equals/4 is raised
when compiling all dependencies. Recompiling assertions after compiling all
dependencies satisfies the call to Code.ensure_compiled/1 and the exception
is avoided. This removes the conditional check until a proper solution can be
found and since we are using Absinthe.

Issue is also described #22

Assertions conditionally adds helpers for use with Absinthe.
`Assertions.Absinthe` utilizes `Code.ensure_compiled/1` to manage this
condition. However, `undefined function assert_response_equals/4` is raised
when compiling the all dependencies. Recompiling assertions after compiling all
dependencies satisfies the call to `Code.ensure_compiled/1` and the exception
is avoided. This removes the conditional check until a proper solution can be
found and since we are using Absinthe.
@n0um3n4
Copy link

n0um3n4 commented May 3, 2021

@timgremore you saved me from hell... I've been drying myself nuts around this issue until I came up with your comments.
I know this is for issues only but I wanted it to thank you.

@allenwyma
Copy link

hi @devonestes can we get this merged in soon? Did you need some help with that?

@btkostner
Copy link

Heads up, this is still an issue and would be really nice to get merged in.

@lleger
Copy link

lleger commented Aug 15, 2025

This is still a problem. I also think the docs make it clear that this is unnecessary: https://hexdocs.pm/elixir/Code.html#module-ensure_compiled-1-and-ensure_compiled-1

It would be useful to get this merged in; otherwise, we are having to maintain a fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants