emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: Org-mode <emacs-orgmode@gnu.org>
Cc: Diego Zamboni <diego@zzamboni.org>
Subject: Re: [ANN] ob-elvish: org-babel support for Elvish code
Date: Sun, 8 Apr 2018 19:30:04 +0200	[thread overview]
Message-ID: <5ED0B25C-3B23-45B1-8263-EEDE2679C7D6@zzamboni.org> (raw)
In-Reply-To: <CAGY83EeGmBJXhg7G77b7HggCcCbypdbdmcMjTDcP09s7AGKp2g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]

Hi,

My ob-elvish module has been working well for me, but I was thinking if the best would be to make ob-shell work with elvish instead of having a whole separate library for it. I tried adding “elvish” to org-babel-shell-names, and it seems to get recognized OK as a shell name, but execution of code blocks fails. I get an empty RESULTS block and the following messages:

executing Elvish code block...
Wrote /var/folders/h0/rh70xwd16913g_2lg0rx9_300320w3/T/babel-37847fAl/ob-input-37847AFC
Error reading results: (beginning-of-buffer)
Code block produced no output.

This happens even for really simple blocks, e.g.:

#+begin_src elvish
echo "hi"
#+end_src

Before I go looking in the code, I was wondering if anyone can tell if I’m missing anything obvious - I just added “elvish” to org-babel-shell-names. Since “fish” works fine, I assume a POSIX shell is not expected, but maybe there is something else that ob-shell is assuming?

Thanks!
—Diego


> On 14 Mar 2018, at 12:04, Diego Zamboni <diego@zzamboni.org> wrote:
> 
> Hi,
> 
> I'm happy to announce my ob-elvish package which allows running Elvish shell code (https://elvish.io/ <https://elvish.io/>) from within an org-mode buffer using org-babel.
> 
> If you want to take a look: https://github.com/zzamboni/ob-elvish <https://github.com/zzamboni/ob-elvish>
> 
> It's not on ELPA yet, I will submit it soon.
> 
> Feedback welcome!
> 
> --Diego
> 


[-- Attachment #2: Type: text/html, Size: 2677 bytes --]

      parent reply	other threads:[~2018-04-08 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14 11:04 [ANN] ob-elvish: org-babel support for Elvish code Diego Zamboni
2018-03-21  1:07 ` Bastien
2018-03-22 14:49   ` Diego Zamboni
2018-04-08 17:30 ` Diego Zamboni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ED0B25C-3B23-45B1-8263-EEDE2679C7D6@zzamboni.org \
    --to=diego@zzamboni.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).