Created by: Fuuzetsu
Create an example Racket file such as:
#lang typed/racket
(define: x : Number 7)
Save, then run-racket. In the file buffer, C-c C-k to compile the file then C-u C-c C-z to load the file into Geiser REPL. Here we can simply put x into the REPL to get back
racket@poly.rkt> x
- : Number
7
Now change the same file to look like
#lang typed/racket
(define: x : Number 7)
(define: y : Number 8)
Recompile with C-c C-k and re-enter with C-u C-c C-z. We can still ask the type of x in the REPL and get the correct answer but if we try to get the type of the newly defined y, instead of the answer I get:
stdin::917: Type Checker: untyped identifier y
in: y
context...:
/usr/lib/racket/collects/typed-racket/utils/tc-utils.rkt:85:0: report-all-errors
/usr/lib/racket/collects/typed-racket/typecheck/tc-toplevel.rkt:411:0: tc-toplevel-form
temp53
/usr/lib/racket/collects/typed-racket/typed-racket.rkt:62:4
/usr/lib/racket/collects/racket/private/misc.rkt:96:20
I'm not sure what more info to provide here.
GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.8.6) of 2013年11月24日 on misaki
Linux misaki 3.12.3-gentoo #2 SMP Sat Dec 7 23:14:57 GMT 2013 i686 Intel(R) Core(TM)2 Duo CPU L7700 @ 1.80GHz GenuineIntel GNU/Linux
Welcome to Racket v5.3.6.
Racket compiled from Gentoo's Portage with following USE flags:
X threads -backtrace -cairo -doc -futures -jit -places -plot
I'd give my geiser version but I seem to be getting a curious error:
progn: Cannot open load file: geiser-version
and my C-h C-f geiser-version gives a weird description:
geiser-version is an interactive autoloaded Lisp function.
[Arg list not available until function definition is loaded.]
Echo Geiser's version.
Perhaps something is completely wrong with my set-up?