Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExVCR.IEx not working with adapter: ExVCR.Adapter.Hackney #156

Open
bryanhuntesl opened this issue Jun 24, 2020 · 2 comments
Open

ExVCR.IEx not working with adapter: ExVCR.Adapter.Hackney #156

bryanhuntesl opened this issue Jun 24, 2020 · 2 comments

Comments

@bryanhuntesl
Copy link
Contributor

bryanhuntesl commented Jun 24, 2020

https://github.com/parroty/exvcr#iex-helper

I try running the example from the README :

% iex -S mix   
Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]

Interactive Elixir (1.10.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> require ExVCR.IEx                                 
ExVCR.IEx
iex(2)> ExVCR.IEx.print(adapter: ExVCR.Adapter.Hackney) do
...(2)> HTTPoison.get!("http://example.com").body         
...(2)> end
** (ArgumentError) you attempted to apply :module_name on {:__aliases__, [line: 2], [:ExVCR, :Adapter, :Hackney]}. If you are using apply/3, make sure the module is an atom. If you are using the dot syntax, such as map.field or module.function, make sure the left side of the dot is an atom or a map
    :erlang.apply({:__aliases__, [line: 2], [:ExVCR, :Adapter, :Hackney]}, :module_name, [])
    (exvcr 0.11.1) expanding macro: ExVCR.IEx.print/2
    iex:2: (file)
@andyduong1920
Copy link

Same issue too

Erlang/OTP 23 [erts-11.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

Interactive Elixir (1.10.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> require ExVCR.IEx
ExVCR.IEx
iex(2)> ExVCR.IEx.print(adapter: ExVCR.Adapter.Hackney) do
...(2)> HTTPoison.get!("http://example.com").body
...(2)> end
** (ArgumentError) you attempted to apply :module_name on {:__aliases__, [line: 2], [:ExVCR, :Adapter, :Hackney]}. If you are using apply/3, make sure the module is an atom. If you are using the dot syntax, such as map.field or module.function, make sure the left side of the dot is an atom or a map
    :erlang.apply({:__aliases__, [line: 2], [:ExVCR, :Adapter, :Hackney]}, :module_name, [])
    (exvcr 0.11.1) expanding macro: ExVCR.IEx.print/2
    iex:2: (file)
iex(2)> 

@bryanhuntesl
Copy link
Contributor Author

It's a pretty simple fix - maybe one of the maintainers could take a look at #157 ? @parroty ?

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

No branches or pull requests

2 participants