Compilation issue again.<br><br>As Matthew explained, I turned off debugging, also turned off "preserve stack trace".<br>I executed the code in DrRacket and it works fine.<br><br>Then I tried in the same interaction (if I am not mistaken):<br>
<br>> (require compiler/embed)<br>> (create-embedding-executable<br> "towers.exe"<br> #:modules '((#f "towers-gui.ss"))<br> #:configure-via-first-module? #t<br> #:literal-expression<br>
(parameterize ([current-namespace (make-base-namespace)])<br> (compile `(namespace-require ''towers-gui)))<br> #:gracket? #t<br> #:collects-path (current-library-collection-paths)<br> )<br><br>It worked the first time.<br>
Then I wanted to add `#:aux '((ico . "img/favicon.ico"))' and it failed with the following error:<br><br>. . M:\Program Files\Racket\collects\racket\private\promise.rkt:103:10: procedure get-compiled-file-sha1: expects 1 argument, given 2: #<path:common_ss.zo> #<path:compiled\drracket><br>
<br>And when I removed the #:aux line, it continued to fail with the same error!<br><br>I could not consistently reproduce this problem on a smaller test file, so I don't have a clue where this comes from.<br>I even reinstalled DrRacket, but no luck.<br>
<br>Also, I tried with command line racket, so I wrote the above code in a #lang racket module.<br>(If executed in DrRacket, it gives the same above error).<br>However, from the command line, I get another error:<br><<<<br>
E:\Projets\Scheme-svn\towers>racket -S E:\Projets\Scheme-svn compile.rkt<br>car: expects argument of type <pair>; given '()<br><br> === context ===<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:514:44: loop<br>
M:\Program Files\Racket\collects\compiler\private\winicon.rkt:514:44: loop<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:514:44: loop<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:514:44: loop<br>
M:\Program Files\Racket\collects\compiler\private\winicon.rkt:511:32: loop<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:511:32: loop<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:499:25: get-lines<br>
M:\Program Files\Racket\collects\compiler\private\winicon.rkt:488:2: build-dib<br>M:\Program Files\Racket\collects\compiler\private\winicon.rkt:180:21<br>M:\Program Files\Racket\collects\racket\private\map.rkt:45:11: for-each<br>
E:\Projets\Scheme-svn\towers\compile.rkt: [running body]<br>>>><br><br>I don't know if these two errors are related. Probably.<br><br>Anyone has a clue of what is going on here?<br>
<br>
Thanks,<br>Laurent<br>