all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with org-babel and geiser
@ 2022-02-03 17:01 Bob Heffernan
  2022-02-04  7:00 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Bob Heffernan @ 2022-02-03 17:01 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.41.1647619222.20802.emacs-orgmode@gnu.org>]

end of thread, other threads:[~2022-05-08 13:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 17:01 Problem with org-babel and geiser Bob Heffernan
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č

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.