<div dir="ltr">enter! blows up because of a root error in module.c. The "module not instantiated in current namespace". module.c has some sort informative logging/debug statements, which print to stdout, but I haven't found the magic environment variable or racket arg. -L debug -W debug don't work. To reproduce the bug I'm doing a enter! at the REPL , but I suspect the REPL is happily swallowing all that lovely logging in module.c</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 9, 2013 at 1:39 PM, Greg Hendershott <span dir="ltr"><<a href="mailto:greghendershott@gmail.com" target="_blank">greghendershott@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to look into it myself, even though it's over my head. On<br>
the bright side it's a chance for me to learn more about how things<br>
like modules and namespaces work, below the surface.<br>
<br>
Also I'm starting to look at DrRacket source, because its F5/Run is<br>
reliable. Is that because it's using `enter!` differently, or not<br>
using it at all? And how if at all does it differ in other respects<br>
to what things like XREPL and Geiser do?<br>
<br>
This whole subject area has been a bit confusing for me, so,<br>
opportunity to learn more. Having said that, this is something that<br>
probably ought to "just work", and it does seem like there is some bug<br>
at the moment.<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Feb 8, 2013 at 3:29 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com">ray.racine@gmail.com</a>> wrote:<br>
> I've been seeing the same behavior. I think something got broke in<br>
> racket/enter "enter!". I don't think it is a Geiser, XRepl issue other<br>
> then both I believe leverage the racket/enter module. Bit of a pain in the<br>
> arse bug, nice if someone could look in to it.<br>
><br>
> Thanks,<br>
><br>
> Ray<br>
><br>
><br>
> On Thu, Feb 7, 2013 at 9:15 AM, Greg Hendershott <<a href="mailto:greghendershott@gmail.com">greghendershott@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Once upon a time, ~5.3, the XREPL ,en command would always reload a<br>
>> file provided the timestamp changed.<br>
>><br>
>> As a result, I could do something _roughly_ like DrRacket F5 in Emacs:<br>
>> Touch the file and ,en it. The whole file would be evaluated, and I'd<br>
>> have a REPL where I could explore/tweak.<br>
>><br>
>> But somewhere around ~5.3.1, ,en stopped doing this reliably.<br>
>> Sometimes it would just do nothing, even if the file timestamp had<br>
>> changed (and even if I made some change to the contents, just in case<br>
>> it was doing a checksum or whatever).<br>
>><br>
>> I thought to try using enter!. And that worked consistently.<br>
>><br>
>> But somewhere around ~5.3.2, enter! has stopped behaving consistently.<br>
>><br>
>> Does anyone have any idea would could be going on??<br>
>><br>
>> More info/comments:<br>
>><br>
>> - I normally use XREPL. (require xrepl) is the _only_ thing in my<br>
>> racketrc.<br>
>><br>
>> - The above issue happens with or without XREPL. (I tried again today<br>
>> to confirm.)<br>
>><br>
>> - Although I love the idea of Geiser, I've had it also sometimes not<br>
>> reevaluate (similar issue). Anyway sometimes I just want to strip<br>
>> things down to be simpler; lately I'm in such a phase where I haven't<br>
>> been using it. I might or could use it again someday.<br>
>><br>
>> - A (related?) issue is that sometimes the first invocation of enter!<br>
>> gives an error like this:<br>
>><br>
>> > (enter! "client.rkt")<br>
>> module->namespace: module not instantiated in the current namespace<br>
>> name:<br>
>> #<resolved-module-path:"/Users/greg/src/scheme/collects/lob/example/client.rkt"><br>
>> context...:<br>
>> /Users/greg/src/plt/racket/collects/racket/enter.rkt:33:0: do-enter!<br>
>> /Users/greg/src/plt/racket/collects/racket/private/misc.rkt:87:7<br>
>><br>
>> But then a second invocation works fine. i.e. Need to do it twice in a<br>
>> row.<br>
>> _________________________<br>
>> Racket Developers list:<br>
>> <a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/dev</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>