Error when evaluating code in a scheme buffer: "Unbound variable: geiser:eval"

Overview

The REPL works, but evaluating code in a scheme buffer fails with the following error: Unbound variable: geiser:eval

Environment

Steps to reproduce

  1. Open a scheme buffer with a form, say, (+ 1 1)
  2. Start the REPL: M-x run-mit
  3. Evaluate the form in the scheme buffer: c-M-x

Expected behavior

The form should evaluate and display the value in the minibuffer.

Actual behavior

An error pops up in the geiser debug buffer.

Warnings and errors

Warning when starting the REPL (from step 2 above):

MIT/GNU Scheme running under OS X
Type `^C' (control-C) followed by` H' to obtain information about interrupts.

Copyright (C) 2022 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO warranty; not even
for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Friday January 6, 2023 at 10:11:41 PM
Release 12.1 || SF || LIAR/x86-64
;Loading "/Users/ads/.config/emacs/elpa/29.1/develop/geiser-mit-20211204.1935/src/geiser/load.scm"...
;  Loading "compile.scm"...
;    Loading "[make.com](http://make.com/)"...
;      Loading "cref-unx.pkd"... done
;      Loading "[mset.com](http://mset.com/)"... done
;      Loading "[object.com](http://object.com/)"... done
;      Loading "[toplev.com](http://toplev.com/)"... done
;      Loading "[anfile.com](http://anfile.com/)"... done
;      Loading "[conpkg.com](http://conpkg.com/)"... done
;      Loading "[forpkg.com](http://forpkg.com/)"... done
;      Loading "[redpkg.com](http://redpkg.com/)"... done
;    ... done
;    Generating SCode for file: "emacs.scm" => "emacs.bin"... done
;    Compiling file: "emacs.bin" => "[emacs.com](http://emacs.com/)"...
;Warning: Procedure called with wrong number of arguments #[primitive-procedure 14 %record-ref] 1
;Warning: Procedure called with wrong number of arguments #[primitive-procedure 14 %record-ref] 1
;Warning: Procedure called with wrong number of arguments #[primitive-procedure 14 %record-ref] 1
;The object
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error>

Error when evaluating the form (from step 3 above):

(+ 1 2)

Error: retort-syntax

;Unbound variable: geiser:eval
;To continue, call RESTART with an option number:
; (RESTART 8) => Specify a value to use instead of geiser:eval.
; (RESTART 7) => Define geiser:eval to a given value.
; (RESTART 6) => Return to read-eval-print level 6.
; (RESTART 5) => Return to read-eval-print level 5.
; (RESTART 4) => Return to read-eval-print level 4.
; (RESTART 3) => Return to read-eval-print level 3.
; (RESTART 2) => Return to read-eval-print level 2.
; (RESTART 1) => Return to read-eval-print level 1.

7 error>