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

issue #448 still exists when using .deb version of hamler 0.5 (module could not be loaded" (Curry) in GenServer example) #478

Open
smarwei opened this issue Mar 6, 2022 · 0 comments

Comments

@smarwei
Copy link

smarwei commented Mar 6, 2022

I just tried to use hamler 0.5 (installed via hamler_0.5_amd64.deb, using erlang/otp 24) for my project.
I just wanted to let you know that it seems like the problem I mentioned in "module could not be loaded" (Curry) in GenServer example" #448 still exists. I basically get the same error, which can be resolved by building hamler from source:

{"init terminating in do_boot",{undef,[{'Control.Behaviour.GenServer',initOk,[{'State',20}],[]},{'Server',start,0,[]},{'Main',main,0,[]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,680}]},{erl_eval,expr,5,[{file,"erl_eval.erl"},{line,428}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{Control.Behaviour.GenServer,initOk,[{}],[]},{Server,start,0,[]},{Main,main,0,[]},{erl_eval,do_apply,6,[{},{}]},{erl_eval,expr,5,[{},{_}]},{init,start_it,1,[]}

Crash dump is being written to: erl_crash.dump...done
hamler: 
Ran commands: 
erl -pa /home/qgo/hamler_curry_bug/ebin -noshell -eval io:setopts([{encoding, unicode}]), ('Main':main())() -s init stop
which erl

Exception: error running: erl -pa /home/qgo/hamler_curry_bug/ebin -noshell -eval io:setopts([{encoding, unicode}]), ('Main':main())() -s init stop
exit status: 1
stderr: init terminating in do_boot ({undef,[{Control.Behaviour.GenServer,initOk,[{}],[]},{Server,start,0,[]},{Main,main,0,[]},{erl_eval,do_apply,6,[{},{}]},{erl_eval,expr,5,[{},{_}]},{init,start_it,1,[]}

I also tested this with a fresh kubuntu 21.10 installation in a vm. After building from source (GHCup, erlang/otp 23) the error disappeared there as well.

I used this code for testing.

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

1 participant