[racket] DrRacket, OSX, and xattr

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Jul 24 21:29:42 EDT 2014

Oh, and for the record: I fixed one bug related to this extra
prompting on May 19th (commit 5751ebe530), so if you have a version
from before that, it may be better for you if you upgrade. There is
still another bug somewhere, tho.

Robby

On Thu, Jul 24, 2014 at 5:21 PM, Justin R. Slepak <jrslepak at ccs.neu.edu> wrote:
> I see this prompt pretty frequently, and I've never explicitly touched xattr. I don't know if it's due to xattr being altered by something in the background, but it does seem to happen a lot.
>
> ---
> Justin Slepak
> PhD student, Computer Science dept.
>
> ----- Original Message -----
> From: Spencer Florence <florence at northwestern.edu>
> To: racket <users at racket-lang.org>
> Sent: Thu, 24 Jul 2014 16:43:39 -0400 (EDT)
> Subject: [racket] DrRacket, OSX, and xattr
>
> Hi all,
>
> Whenever I save a file with DrRacket on OSX, it always sets some extended
> attributes on the file. Specifically it sets:
>
> [snips:pl7/examples] xattr -l somefile.rkt
> com.apple.FinderInfo:
> 00000000  54 45 58 54 44 72 53 63 00 00 00 00 00 00 00 00
>  |TEXTDrSc........|
> 00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>  |................|
> 00000020
>
> In addition if I clear the xattr's (via xattr -c) DrRacket treats this as
> an external write to the file and prompts me to overwrite on save and
> revert on run. Is this behavior intended? It seems odd given that DrRacket
> doesn't do this with normal attributes (permission, suid bit, etc.) If it
> is intended what is the rational and can I disable it?
>
> --Spencer
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.