emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bob Heffernan <bob.heffernan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Problem with org-babel and geiser
Date: Thu, 3 Feb 2022 17:01:22 +0000	[thread overview]
Message-ID: <20220203170122.vxjavtebsbsxdeja@bob-mtu> (raw)

Dear all,

I am having trouble with evaluating scheme source-blocks in org-mode.
Specifically, in a minimal example such as this:

#+title: Test
#+PROPERTY: header-args :session *scheme*

#+begin_src scheme
  (+ 1 1)
#+end_src

When I evaluate the src block, the results come back empty.

The *geiser-messages* buffer has this:
WARNING: File /home/bob/.chez-geiser does not exist, so it's not added to CLI args

INFO: REQUEST: <1>: (begin (import (geiser)) (write `((result ) (output . ""))) (newline))

INFO: RETORT: ((result) (output . ""))

INFO: <1>: processed

ERROR: <2>: continuation failed "(geiser:eval '#f '(begin ;; -*- geiser-scheme-implementation: chez -*-
(+ 1 1)
))"
	(error Selecting deleted buffer)

In an effort to make sure it's not something funny in my config, I reduced my init.el to the following:

(require 'package)
(add-to-list 'package-archives
  '("nongnu" . "https://elpa.nongnu.org/nongnu/"))
(package-initialize)

(require 'geiser)
(require 'geiser-chez)
(setq geiser-chez-binary "chez")
(org-babel-do-load-languages
 'org-babel-load-languages
 '((scheme . t)))

but the problem persists.

I happen to be using chez scheme, but the same issue arises with other implementations (I tried guile, chicken and racket).  On the other hand, evaluating an elisp block works fine.

This might be a geiser problem, rather than an org problem, but geiser appears to be working fine otherwise.

I'm running Emacs 27.2 on Arch Linux with Org 9.4.4.

Any help would be appreciated.

Regards,
Bob Heffernan


             reply	other threads:[~2022-02-03 17:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-03 17:01 Bob Heffernan [this message]
2022-02-04  7:00 ` Ihor Radchenko
2022-02-04 15:09   ` Bob Heffernan
2022-02-05 11:39     ` Ihor Radchenko
2022-02-05 22:10       ` Bob Heffernan
2022-03-17 17:04         ` Rudolf Adamkovič
2022-03-23 11:16           ` Neil Jerram
2022-03-27  9:47             ` Rudolf Adamkovič
2022-05-08 13:56               ` Ihor Radchenko
     [not found] <mailman.41.1647619222.20802.emacs-orgmode@gnu.org>
2022-03-18 16:50 ` Zelphir Kaltstahl
2022-03-22 20:51   ` Rudolf Adamkovič
2022-03-22 23:54     ` Zelphir Kaltstahl
2022-03-27 10:21       ` Rudolf Adamkovič

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=20220203170122.vxjavtebsbsxdeja@bob-mtu \
    --to=bob.heffernan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Problem with org-babel and geiser' \
    /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

Code repositories for project(s) associated with this 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).