From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ezequiel Birman Subject: ob-js and Indium Date: Wed, 18 Dec 2019 14:50:30 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004495660599fe1548" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40850) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihdTA-0006Ll-1i for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 12:50:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihdT8-0000NC-KL for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 12:50:43 -0500 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]:42850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihdT8-0000I0-BJ for emacs-orgmode@gnu.org; Wed, 18 Dec 2019 12:50:42 -0500 Received: by mail-ot1-x32f.google.com with SMTP id 66so3444598otd.9 for ; Wed, 18 Dec 2019 09:50:42 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --0000000000004495660599fe1548 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all. I wanted to know if a JavaScript source block configured to use a session managed via https://github.com/NicolasPetton/Indium is currently supported. I believe the error I am getting is related to https://code.orgmode.org/bzg/org-mode/src/master/lisp/ob-js.el#L47 where =E2=80=9C(declare-function indium-run-node "ext:indium-nodejs" (comma= nd))=E2=80=9D refers to a function named =E2=80=9Cindium-run-node=E2=80=9D that does no l= onger exist https://github.com/NicolasPetton/Indium/commit/3e7f181dca115bccb0cb150fc753= ca353be359e4#diff-76bee0dfd13edc6083c22f66c5711149 There is an =E2=80=9Cindium-launch-nodejs=E2=80=9D instead that works with = the current client-server model for Indium. I'll try to replace =E2=80=9Cindium-run-node=E2=80=9D for =E2=80=9Cindium-l= aunch-nodejs=E2=80=9D and provide a proper config for an ob-js REPL in a =E2=80=9C.indium.json=E2=80= =9D but any pointers you could provide to me would be of great help. Thank you --=20 Ezequiel Birman --0000000000004495660599fe1548 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all.

I wanted to know if a JavaScript sour= ce block configured to use a session managed via https://github.com/NicolasPetton/Indium=C2=A0= is currently supported.

I believe the error I am g= etting is related to=C2=A0https://code.orgmode.org/bzg/org-mode/src/mas= ter/lisp/ob-js.el#L47

where =E2=80=9C(declare-= function indium-run-node "ext:indium-nodejs" (command))=E2=80=9D = refers to a function named =E2=80=9Cindium-run-node=E2=80=9D that does no l= onger exist


There is an =E2=80=9Cindium-launch-nodejs= =E2=80=9D instead that works with the current client-server model for Indiu= m.

I'll try to replace =E2=80=9Cindium-run-nod= e=E2=80=9D for =E2=80=9Cindium-launch-nodejs=E2=80=9D and provide a proper = config for an ob-js REPL in a =E2=80=9C.indium.json=E2=80=9D but any pointe= rs you could provide to me would be of great help.

Thank you

--=C2=A0
Ezequiel Birman
--0000000000004495660599fe1548-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: ob-js and Indium Date: Thu, 19 Dec 2019 16:45:28 +0800 Message-ID: <8736dgg0uv.fsf@gmail.com> References: Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45445) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihrRG-0005Dh-8x for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 03:45:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihrRE-0004BD-Sl for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 03:45:41 -0500 Received: from [183.246.146.101] (port=1814 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ihrRE-0003bK-CK for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 03:45:40 -0500 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Ezequiel Birman writes: > Hi all. > > I wanted to know if a JavaScript source block configured to > use a session managed via > https://github.com/NicolasPetton/Indium is currently > supported. > > I believe the error I am getting is related to > https://code.orgmode.org/bzg/org-mode/src/master/lisp/ob-js.el#L47 > >From Git log history, It seems is submitted by @Aaron Ecay, I used to added Indium, skewer etc JS REPL support for ob-js. But seems those external pack= age APIs updated again. I think you can update by yourself. It's simple. > > where =E2=80=9C(declare-function indium-run-node "ext:indium-nodejs" > (command))=E2=80=9D refers to a function named =E2=80=9Cindium-run-node= =E2=80=9D that > does no longer exist > > https://github.com/NicolasPetton/Indium/commit/3e7f181dca115bccb0cb150fc7= 53ca353be359e4#diff-76bee0dfd13edc6083c22f66c5711149 > > > There is an =E2=80=9Cindium-launch-nodejs=E2=80=9D instead that works with > the current client-server model for Indium. > > I'll try to replace =E2=80=9Cindium-run-node=E2=80=9D for > =E2=80=9Cindium-launch-nodejs=E2=80=9D and provide a proper config for an > ob-js REPL in a =E2=80=9C.indium.json=E2=80=9D but any pointers you could > provide to me would be of great help. > > Thank you --=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20