Last active
March 11, 2016 21:33
-
-
Save sivsushruth/8f876f76b1e682d4a384 to your computer and use it in GitHub Desktop.
calling elixir compiled from erlang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule CouchElixir do | |
def main(args) do | |
"sample return" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Converted = 'Elixir.CouchElixir':main('1 + 2'), | |
io:format("Query View: ~p.", [Converted]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<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