grpcbox
grpcbox copied to clipboard
Errors loading plugin {grpc_plugin, "~> 0.7.0"} when running `rebar3 as test shell`
I pulled the latest version of the repo, and ran the rebar3 as test shell
as instructed in the documentation. I am getting this error:
ryan@Ryans-MBP grpcbox % rebar3 as test shell DEBUG=1
===> Analyzing applications...
===> Compiling getopt
===> Compiling providers
===> Compiling gpb
===> Compiling grpcbox_plugin
===> Compiling _build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl failed
_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:5: can't find include lib "providers/include/providers.hrl"; Make sure providers is in your app file's 'applications' list
_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:142: undefined macro 'PRV_ERROR/1'
_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:59: function compile_pb/3 undefined
===> Errors loading plugin {grpcbox_plugin,"~> 0.7.0"}. Run rebar3 with DEBUG=1 set to see errors.
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling grpcbox
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Eshell V11.1.8 (abort with ^G)
1> ===> Booted hpack
===> Booted chatterbox
===> Booted acceptor_pool
===> Booted gproc
===> Booted ctx
===> Booted grpcbox
The erlang version that I have installed is 23.2.7
Is there some dependency that I am missing?
Also, when I hit localhost:8080, I get this crash report:
=CRASH REPORT==== 4-Mar-2021::19:52:43.265401 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.498.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 28
reductions: 1976
neighbours:
=CRASH REPORT==== 4-Mar-2021::19:52:43.266024 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.499.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 28
reductions: 1977
neighbours:
=CRASH REPORT==== 4-Mar-2021::19:52:43.266826 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.500.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 28
reductions: 1854
neighbours:
=CRASH REPORT==== 4-Mar-2021::19:52:44.410367 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.501.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 28
reductions: 1854
neighbours:
=CRASH REPORT==== 4-Mar-2021::19:52:44.410821 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.502.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 28
reductions: 1854
neighbours:
=CRASH REPORT==== 4-Mar-2021::19:52:44.411583 ===
crasher:
initial call: grpcbox_acceptor:init/3
pid: <0.503.0>
registered_name: []
exception exit: invalid_preface
in function h2_connection:become/3 (/Users/ryan/Projects/PlayingAround/grpcbox/_build/default/lib/chatterbox/src/h2_connection.erl, line 205)
ancestors: ['grpcbox_pool_0.0.0.0_8080',
'grpcbox_services_sup_0.0.0.0_8080',
grpcbox_services_simple_sup,grpcbox_sup,<0.489.0>]
message_queue_len: 0
messages: []
links: [<0.496.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 28
reductions: 1850
neighbours:
@RyandenOtter I got the same error, and upgrading the locale rebar3
version helps