Skip to content

Instantly share code, notes, and snippets.

@sivsushruth
Last active March 11, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivsushruth/8f876f76b1e682d4a384 to your computer and use it in GitHub Desktop.
Save sivsushruth/8f876f76b1e682d4a384 to your computer and use it in GitHub Desktop.
calling elixir compiled from erlang
defmodule CouchElixir do
def main(args) do
"sample return"
end
end
Converted = 'Elixir.CouchElixir':main('1 + 2'),
io:format("Query View: ~p.", [Converted]).
[<0.434.0>] [error] Uncaught error in HTTP request: {error,undef}
[<0.434.0>] [info] Stacktrace: [{'Elixir.CouchElixir',main,['1 + 2'],[]},{couch_mrview,query_view,6,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/couch_mrview/src/couch_mrview.erl"},{line,63}]},{couch_httpd,etag_maybe,2,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/couch_httpd/src/couch_httpd.erl"},{line,552}]},{couch_mrview_http,design_doc_view,5,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/couch_mrview/src/couch_mrview_http.erl"},{line,150}]},{couch_httpd_db,do_db_req,2,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/couch_httpd/src/couch_httpd_db.erl"},{line,129}]},{couch_httpd,handle_request_int,5,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/couch_httpd/src/couch_httpd.erl"},{line,285}]},{mochiweb_http,headers,6,[{file,"/home/sivsushruth/barrel-platform/_build/default/lib/mochiweb/src/mochiweb_http.erl"},{line,114}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment