1
0
Fork
You've already forked mit
0

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

Open
opened 2023年11月15日 21:29:41 +01:00 by eightysteele1 · 3 comments
eightysteele1 commented 2023年11月15日 21:29:41 +01:00 (Migrated from gitlab.com)
Copy link

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>
### Overview The REPL works, but evaluating code in a scheme buffer fails with the following error: `Unbound variable: geiser:eval` ### Environment - geiser-mit: https://gitlab.com/emacs-geiser/mit/-/commit/4e90e9ae815e89f3540fb9644e6016c663ef5765 - geiser: https://gitlab.com/emacs-geiser/geiser/-/commit/49d12a14482ce9a193c049a5ccdd2fed90b0bdbe - mit-scheme-12.1-x86-64 - GNU Emacs 29.1 - macOS 14.1 (23B74), M1 ### 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): ```scheme 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): ```scheme (+ 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> ```
eightysteele1 commented 2023年11月28日 01:16:15 +01:00 (Migrated from gitlab.com)
Copy link

mentioned in issue geiser#63

mentioned in issue geiser#63
eightysteele1 commented 2023年11月28日 01:16:50 +01:00 (Migrated from gitlab.com)
Copy link

(Just in case anyone is following along, I posted an update here: geiser#63)

(Just in case anyone is following along, I posted an update here: geiser#63)
jaor commented 2024年02月14日 04:18:55 +01:00 (Migrated from gitlab.com)
Copy link

mentioned in issue #10

mentioned in issue #10
Sign in to join this conversation.
No Branch/Tag specified
master
0.15
0.14
0.13
0.12
0.11.2
0.11.1
0.11
0.10
0.9
0.8.1
0.8
0.7
0.6
0.5
0.4
0.3
0.2.2
0.2.1
0.2
0.1.4
0.1.3
0.1.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geiser/mit#9
Reference in a new issue
geiser/mit
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?