learnxinyminutes-docs icon indicating copy to clipboard operation
learnxinyminutes-docs copied to clipboard

[Racket / rkt] Running the script fails

Open fuxoft opened this issue 2 years ago • 0 comments

When running:

racket learnracket.rkt

with Racket v8.6 on Ubuntu (the current "latest" version), it stops with the following error:

learnracket.rkt:678:8: module: identifier already defined
  at: out-port
  in: (define-values (out-port) (open-output-file "/tmp/tmp.txt" #:exists (quote append)))
  location...:
   learnracket.rkt:678:8

Changing "out-port" to "out-port2" in lines 678 to 681 seems to fix the error but I am a total Racket beginner so I am not sure if that's indeed the correct fix.

fuxoft avatar Sep 29 '22 20:09 fuxoft