Happened to me again, but this time it's not related to #%foreign:<br>standard-module-name-resolver: contract violation<br> expected: module-path?<br> given: ''(#%utils)<br><br>Strangely, this #%utils is not a module that I require directly or even indirectly (the dependency browser does not show any 'utils' module, even when showing all libs), and it does not happen on the same file as last time. <br>
Note the doubled single-quote this time.<br>I think (but I'm not sure), that this #%utils comes from a different file that is opened in my DrRacket session (namely x11-racket/x11 that requires x11-racket/utils). Closing x11-racket/x11 does not solve the problem. But from the command line still no problem.<br>
<br>Aha! I seem to have found a workaround: Close DrRacket, delete the compiled directory, then re-open DrRacket and the file, run it, and it works.<br><br>I still have no idea how to reproduce the bug though.<br><br>Laurent<br>
<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 5:02 PM, Laurent <span dir="ltr"><<a href="mailto:laurent.orseau@gmail.com" target="_blank">laurent.orseau@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On some occasions, drracket won't compile my file, and prints an error:<br><br>standard-module-name-resolver: contract violation<br> expected: module-path?<br> given: '(#%foreign)<br><br></blockquote><div><br></div>
<div><br></div></div><div>Wait, but this doesn't look right anyway, because '(#%foreign) is a list. So that may be a type error somewhere. Have you seen it happen under Racket 5.3.1 already?</div></div></blockquote>
</div><div><br>Yes it is in 5.3.1 <br><div><br></div></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>I haven't encountered this yet. Being able to reproduce the error would be a great start in debugging this.</div>
</div>
</blockquote></div></div><br>I agree, but I don't know what causes it or when it happens.<br>Now I'm running the same code on a different machine and the above error does not appear.<span class="HOEnZb"><font color="#888888"><br>
<br>Laurent<br><br></font></span></div>
</blockquote></div><br></div>