<div dir="ltr"><div><div><div><div><div><div>Alvin,<br><br></div>This looks like a bug in errortrace, one of the compiler extensions DrRacket uses to provide debugging information at runtime. Here's a workaround you can use:<br>
<br></div> 1. Open the "Language" menu.<br></div> 2. If there is no right-hand pane to the menu, click the "Show Details" button in the lower left.<br></div> 3. On the top right of the menu, in the "Dynamic Properties" group, select "No debugging or profiling".<br>
</div> 4. Click "OK".<br><br></div>After that, running your program should work. I've tested this with Racket version 5.3.6 and with a recent git checkout. We would also really appreciate it if you could report this bug using "Submit Bug Report..." in the Help menu of DrRacket. Thanks very much, sorry for the bug!<br>
<div class="gmail_extra"><br clear="all"><div>Carl Eastlund</div>
<br><div class="gmail_quote">On Fri, Sep 6, 2013 at 9:22 AM, Alvin Schatte <span dir="ltr"><<a href="mailto:AlvinSchatte@skytex.net" target="_blank">AlvinSchatte@skytex.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div>Hello Carl,</div>
<div> </div>
<div>I found a location in mras.rkt where I comment out the provide for the
map-2 function, the program runs, and when I re-instate it, it fails. The
section of code is:</div>
<div> </div>
<div>;; map-2</div>
<div>(provide</div>
<div>(proc-doc/names map-2 </div>
<div>
(procedure? list? list? . -> . list?)</div>
<div>
(proc l1 l2)</div>
<div>
@{Applies a procedure of two elements to the elements of two lists, </div>
<div>
@racket[l1] and @racket[l2], returning the result in another list. </div>
<div>
When one list is exhausted, the other list is returned as the rest of the
resultant list.}))</div>
<div> </div>
<div>Also, when the proc-doc/names section is replaced by the function name,
i.e., (provide map-2), the program runs.</div>
<div> </div>
<div>I was removing provide contracts one by one to see if I could find the
problem. Fortunately, it occurred on the first one I tried, but I don’t
know why.</div>
<div>Thanks for your help. I am interested in knowing why this problem
occurs, if you are able to diagnose it further.</div>
<div style="font-size:12pt;font-family:'Calibri'">Alvin
Schatte<br></div>
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:'Calibri';font-weight:normal">
<div style="FONT:10pt tahoma">
<div><font size="3" face="Calibri"></font> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="cce@ccs.neu.edu" href="mailto:cce@ccs.neu.edu" target="_blank">Carl Eastlund</a> </div>
<div><b>Sent:</b> Wednesday, September 04, 2013 9:38 PM</div><div><div class="h5">
<div><b>To:</b> <a title="AlvinSchatte@skytex.net" href="mailto:AlvinSchatte@skytex.net" target="_blank">Alvin Schatte</a> </div>
<div><b>Cc:</b> <a title="users@racket-lang.org" href="mailto:users@racket-lang.org" target="_blank">Racket Users</a> </div>
<div><b>Subject:</b> Re: [racket] Question on error message</div></div></div></div></div>
<div> </div></div><div><div class="h5">
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:'Calibri';font-weight:normal">
<div dir="ltr">
<div>
<div>
<div>
<div>Alvin,<br><br></div>Thanks for the source. Unfortunately, I can't run
what you sent because it's missing at least one file. Try the following
when sharing code for debugging purposes:<br><br></div>
<div>1. Use a site like <a href="http://pastebin.com" target="_blank">pastebin.com</a> or <a href="http://gist.github.com" target="_blank">gist.github.com</a> where you can easily paste and
share a file without copying an attachment to many people's inboxes over a
mailing list.<br></div>
<div>2. Include all necessary files, or better yet reduce the example to one
file.<br></div>
<div>3. Similarly, reduce dependencies on third-party libraries such as planet
packages if possible.<br><br></div>
<div>Right now I'm missing "diff-e solver.rkt" and I have to install
"wmfarr/simple-matrix:1:1", which is doable but inconvenient. Thanks for
the question and followup, and I'm happy to help if you can post a complete
example.<br></div></div></div>
<div> </div>
<div class="gmail_extra">
<div>Carl Eastlund</div>
<div> </div>
<div class="gmail_quote">On Wed, Sep 4, 2013 at 10:22 PM, Alvin Schatte <span dir="ltr"><<a href="mailto:AlvinSchatte@skytex.net" target="_blank">AlvinSchatte@skytex.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri'">
<div>Hello Carl,</div>
<div>Thank you for looking at this. I am writing contracts and playing
with documentation for a fairly large module that, right now, performs a
system identification function. The file is attached. I made
several changes without “Run”ning, so I’m not sure what changed caused the
error.</div>
<div>Thank you again for your help,</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri'">Alvin Schatte<br></div>
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="cce@ccs.neu.edu" href="mailto:cce@ccs.neu.edu" target="_blank">Carl Eastlund</a> </div>
<div><b>Sent:</b> Wednesday, September 04, 2013 9:06 PM</div>
<div><b>To:</b> <a title="AlvinSchatte@skytex.net" href="mailto:AlvinSchatte@skytex.net" target="_blank">Alvin Schatte</a> </div>
<div><b>Cc:</b> <a title="users@racket-lang.org" href="mailto:users@racket-lang.org" target="_blank">Racket Users</a> </div>
<div><b>Subject:</b> Re: [racket] Question on error message</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;FONT-FAMILY:'Calibri';FONT-WEIGHT:normal;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
<div>
<div>
<div dir="ltr">
<div>Alvin,<br><br></div>That looks like an internal error message from some
language feature you're using, unless you're using something like begin-lifted
or syntax-local-lift-expression directly. Often the contract system
generates names for internal use like "lifted.171", but there shouldn't be
duplicate definitions, and if there are, it's likely not your fault. Can
you share the code that causes this error message? If so, someone may be
able to diagnose the error. Otherwise, with just the error message, we
don't have much to go on.<br>
<div class="gmail_extra">
<div> </div>
<div>Carl Eastlund</div>
<div> </div>
<div class="gmail_quote">On Wed, Sep 4, 2013 at 9:59 PM, Alvin Schatte <span dir="ltr"><<a href="mailto:AlvinSchatte@skytex.net" target="_blank">AlvinSchatte@skytex.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri'">
<div>Hello,</div>
<div>I got the following error message after <Ctrl-R> in Dr.
Racket. I am not sure what it means:</div>
<div> </div>
<div>module: duplicate definition for identifier in: lifted.171</div>
<div> </div>
<div>Could someone explain it to me?</div><span><font color="#888888">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri'">Alvin
Schatte<br></div></font></span></div></div></div><br>____________________<br>
Racket Users list:<br> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br><br></blockquote></div>
<div> </div></div></div><a></a></div></div>
<p color="#000000" align="left">No virus found in this message.<br>Checked by
AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version:
2013.0.3392 / Virus Database: 3222/6639 - Release Date:
09/04/13</p></div></div></div></div></blockquote></div>
<div> </div></div></div><a></a>
<p color="#000000" align="left">No virus found in this
message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 2013.0.3392 / Virus
Database: 3222/6639 - Release Date: 09/04/13</p></div></div></div></div></div></div>
</blockquote></div><br></div></div>