[racket-dev] Bug in creating executables from DrRacket

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Fri Jan 25 15:49:02 EST 2013

Hello,

In a freshly started DrRacket 5.3.2.1, on Windows 8, executables
creation fails with this message:

====
Executable creation in DrRacket is supported only in the teaching
languages and when the #lang line specifies the language (in “The
Racket Language”)

Consider using the raco exe command-line tool instead.
====

Applied to a program which uses "#lang racket" and from which
executables could be generated with previous versions.

LATER: It failed repeatedly, until, by chance, I opened the "chose language"
dialog, and closed it back without any change. After this it started
working as always.

STILL LATER: There's still the internal error when an existing
executable cannot be overwritten because it's executing:

====
delete-file: cannot delete file
  path: e:\local\documents\scheme\sofa-prova.exe
  system error: Permission denied; errno=13
  context...:
   C:\Program Files\Racket-Full-5.3.2.1\collects\compiler\embed-unit.rkt:1200:4:
 core127
channel-put: contract violation
  expected: channel?
  given: #f
  context...:
   C:\Program Files\Racket-Full-5.3.2.1\collects\racket\private\misc.rkt:168:2:
channel-put
====

Cheers
P.

;;; ====(Fri Jan 25 19:07:22 2013)==================================


Posted on the dev mailing list.