Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61331100FC for ; Fri, 16 Aug 2013 08:26:09 +0000 (UTC) Received: (qmail 42021 invoked by uid 500); 16 Aug 2013 08:26:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 41799 invoked by uid 500); 16 Aug 2013 08:25:59 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 41791 invoked by uid 99); 16 Aug 2013 08:25:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Aug 2013 08:25:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alcosholik@gmail.com designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Aug 2013 08:25:52 +0000 Received: by mail-ie0-f180.google.com with SMTP id aq17so2980313iec.11 for ; Fri, 16 Aug 2013 01:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=dDO0fJKIh3+2bxZ4QEU/mFg0dOslSH6TC8k34L+1qAg=; b=z4NmpJio4sJswjdEEqr0RMRRGmQBxIn3iDN7XgzS5iB+z+JSSc6YR/NF9c/HpyYp3u BC249NYChhfPaQOyaonmttvi97bcBSloaeiwFjMI6cz0Sb06NNE6BFvm/oV/lF5TGMR0 fUGUVCZT5tV2SSse4zG5+KQKwFMdG2g3s/6EVYMaf19O+qM2YrRGb/7u0BnQQVVQT4Qd zeWjPmYLFcYLKAf1sF0rdBnKXTGfxp5HRLRtazPVGUEswi5awyn5UFgmYRqbZ2wdyOxb bk5IAuEsdyPzjoMzxwJ4Q4fcahPlQ8g1pw6pmPnbep0O0CzbBpb/YAVR53HZ/rToG4Sl Zq5A== X-Received: by 10.42.62.145 with SMTP id y17mr154161ich.40.1376641531179; Fri, 16 Aug 2013 01:25:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.72.80 with HTTP; Fri, 16 Aug 2013 01:25:11 -0700 (PDT) From: Alexei Sholik Date: Fri, 16 Aug 2013 11:25:11 +0300 Message-ID: Subject: Re: Using Elixir language for CouchDB hacking To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba6149a072f8e804e40c55bd X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6149a072f8e804e40c55bd Content-Type: text/plain; charset=UTF-8 Hi, I have tried adding an Elixir query module by putting its .beam file into couch's ebin directory and adding the module name to couch.app, but it didn't work. Source code for the module (this is only a placeholder for now) -- http://pastebin.com/BEqKKH99. I've added the following line in my config: elixir = {'Elixir.CouchQuery', start_link, []} Then restarted couchdb. I am now able to choose "elixir" as a language in Futon, but when I try to run a temporary query, I get the following error -- http://pastebin.com/htWqU1rb Below the error you can see that manually calling the "start_link" function from the shell (when the current working directory is couch's ebin) works fine. My question is: is there any other knob/config I forgot to turn to make my Elixir.CouchQuery.beam visible to the couchdb process? -- Best regards Alexei Sholik --90e6ba6149a072f8e804e40c55bd--