[racket] another error on run/save (was: "changed on disk" (was: Re: Buttons on the toolbar don't appear))

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Tue Oct 5 14:09:38 EDT 2010

Yes, I do the same compulsive save/run thing.

And, here's another strange thing I happened to experience today. I
can pretty reliably reproduce this: Take a BSL file with a bunch of
definitions, check-expects, etc. and put a comment box into the file.
Then do Cmd+T / Cmd+S  in quick succession, such that the Cmd+S
happens when only the first "Welcome to DrRacket..." line appears in
the interactions, before the "Language: ..." and "All tests pass"
lines appear. Then what I get is an error:

Welcome to DrRacket, version
5.0.1.7--2010-09-30(9755d565bd03967df6be84f96b0e39a483572de1/a) [3m].
Language: Beginning Student with List Abbreviations; memory limit: 128 MB.
text-input-port: editor has changed since port was opened:
(instantiate (class ...) ...)
>

I'm pretty sure this depends on having a comment box in the file; with
a plain text source code file, it doesn't happen.

--- nadeem



On Tue, Oct 5, 2010 at 1:35 PM, John Clements <clements at brinckerhoff.org> wrote:
>
> On Oct 2, 2010, at 7:20 AM, Matthias Felleisen wrote:
>
>>
>> On Oct 2, 2010, at 8:23 AM, Robby Findler wrote:
>>
>>> On Fri, Oct 1, 2010 at 10:29 PM, Nadeem Abdul Hamid <nadeem at acm.org> wrote:
>>>> Do other people experience these things?...
>>>>
>>>> Why is it that sometimes when I open a *.rkt file with  #lang racket
>>>> at the top, the "check syntax" "debug" "macro stepper" buttons don't
>>>> appear unless I go that top #lang line and edit it -- delete the "t"
>>>> of "racket" and retype it, for instance?
>>>
>>> This bug I've heard about, but I'm not able to make it happen myself
>>> (if you know how then I guess it would probably be easy to fix).
>>>
>>>> Another strange thing that happens sometimes (I can't figure out why
>>>> or what makes it happen) is that when I save a file, a dialog box pops
>>>> up saying something about overwriting a newer file with the same name.
>>>> I'm not sure, but this might only happen in #lang slideshow.
>>>
>>> This one's new to me!
>>
>>
>> I can confirm both bugs. They happen on occasion, but not a repeatable
>> basis. (So I don't report.).
>
> I've seen both of these on OS X, and the second one happens to me *all the time*.  In my case, I suspect it may have something to do with my compulsive save/run cmd-s cmd-t keystroke, though I just tried and couldn't reproduce it by hitting them really fast or waiting for an auto-save.
>
> Specifically, I usually hit cmd-t and see the message similar to "file has changed on disk. ignore or revert?" The next time it happens to me I'll check the disk to see whether the date on the file is actually newer than I expect.
>
>
> John
>
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.