Re: [racket-dev] [racket-bug] all/11365: syntax definitions in interactions -- namespace mismatch: errortrace-key
Eli Barzilay wrote: * If it's OSX, and no `git' was found in the path, then try /opt/local/bin/git. This looks like the common place to get it installed on OSX (please correct me if it's wrong). Homebrew (and a simple ./configuremake install) will put it in /usr/local/bin. It might be worth checking there too, if /usr/local/bin isn't on the default OS X path. Regards, Tony _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
[racket-dev] Strange module mismatch
I'm hitting a module mismatch that won't go away no matter how many times I type raco make or raco setup. Running the module #lang racket (require redex) variables-not-in produces link: module mismatch, probably from old bytecode whose dependencies have changed: variable not provided (directly or indirectly) from module: /Users/clklein/git/plt/collects/redex/private/fresh.rkt accessed from module: 'anonymous-module at source phase level: 0 in: variables-not-in in DrRacket but works fine using the racket command. This happens in a fresh build of master's HEAD. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Strange module mismatch
Is the DrRacket option populate compiled/ directories enabled or disabled? If it is enabled, disable it and try again. I get this kind of behavior with planet development links sometimes; see PR 10685. Of course, these problems may not be directly related even if this option does fix your program. Carl Eastlund On Wed, Nov 3, 2010 at 2:24 PM, Casey Klein clkl...@eecs.northwestern.edu wrote: I'm hitting a module mismatch that won't go away no matter how many times I type raco make or raco setup. Running the module #lang racket (require redex) variables-not-in produces link: module mismatch, probably from old bytecode whose dependencies have changed: variable not provided (directly or indirectly) from module: /Users/clklein/git/plt/collects/redex/private/fresh.rkt accessed from module: 'anonymous-module at source phase level: 0 in: variables-not-in in DrRacket but works fine using the racket command. This happens in a fresh build of master's HEAD. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Strange module mismatch
I get the same error with the option disabled. On Wed, Nov 3, 2010 at 1:41 PM, Carl Eastlund c...@ccs.neu.edu wrote: Is the DrRacket option populate compiled/ directories enabled or disabled? If it is enabled, disable it and try again. I get this kind of behavior with planet development links sometimes; see PR 10685. Of course, these problems may not be directly related even if this option does fix your program. Carl Eastlund On Wed, Nov 3, 2010 at 2:24 PM, Casey Klein clkl...@eecs.northwestern.edu wrote: I'm hitting a module mismatch that won't go away no matter how many times I type raco make or raco setup. Running the module #lang racket (require redex) variables-not-in produces link: module mismatch, probably from old bytecode whose dependencies have changed: variable not provided (directly or indirectly) from module: /Users/clklein/git/plt/collects/redex/private/fresh.rkt accessed from module: 'anonymous-module at source phase level: 0 in: variables-not-in in DrRacket but works fine using the racket command. This happens in a fresh build of master's HEAD. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Strange module mismatch
Did you edit files that drracket depends on and then not restart drracket? On Wed, Nov 3, 2010 at 1:24 PM, Casey Klein clkl...@eecs.northwestern.edu wrote: I'm hitting a module mismatch that won't go away no matter how many times I type raco make or raco setup. Running the module #lang racket (require redex) variables-not-in produces link: module mismatch, probably from old bytecode whose dependencies have changed: variable not provided (directly or indirectly) from module: /Users/clklein/git/plt/collects/redex/private/fresh.rkt accessed from module: 'anonymous-module at source phase level: 0 in: variables-not-in in DrRacket but works fine using the racket command. This happens in a fresh build of master's HEAD. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Strange module mismatch
No, but I did run the wrong drracket executable after getting a pristine build. Sorry for the noise! On Wed, Nov 3, 2010 at 2:06 PM, Robby Findler ro...@eecs.northwestern.edu wrote: Did you edit files that drracket depends on and then not restart drracket? On Wed, Nov 3, 2010 at 1:24 PM, Casey Klein clkl...@eecs.northwestern.edu wrote: I'm hitting a module mismatch that won't go away no matter how many times I type raco make or raco setup. Running the module #lang racket (require redex) variables-not-in produces link: module mismatch, probably from old bytecode whose dependencies have changed: variable not provided (directly or indirectly) from module: /Users/clklein/git/plt/collects/redex/private/fresh.rkt accessed from module: 'anonymous-module at source phase level: 0 in: variables-not-in in DrRacket but works fine using the racket command. This happens in a fresh build of master's HEAD. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
[racket-dev] saving .scrbl file OS X message box
Dear Heavens, this is the most unpleasant message box I've seen in a while, when trying to save a file with the extension scrbl in OS X 10.6.4: boldYou cannot save this document with extension .scrbl at the end of the name. The required extension is ../bold You can choose to use both, so that your file name ends in .scrbl. ... uh? I'm guessing that we deduced that by requiring the extension . only, OS X would allow us to save with any extension we liked, but the resulting message box is appalling; I vote for going back to what we had before Apologies if I'm misunderstanding something, here. John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
[racket-dev] Lines cs paras
I think you want to count paragraphs not lines (and leave space when lines wrap). Otherwise the numbers won't match up with the error messages. Robby On Wednesday, November 3, 2010, rafk...@racket-lang.org wrote: rafkind has updated `master' from c990d602b0 to 68c197f639. http://git.racket-lang.org/plt/c990d602b0..68c197f639 =[ 3 Commits ]== Directory summary: 92.7% collects/framework/private/ 7.2% collects/scribblings/framework/ ~~ 4a69c36 Jon Rafkind rafk...@racket-lang.org 2010-11-03 14:56 : | use line locations instead of counting snips : M collects/framework/private/text.rkt | 30 ++ ~~ 7f56e67 Jon Rafkind rafk...@racket-lang.org 2010-11-03 15:09 : | add line number interface documentation : M collects/scribblings/framework/text.scrbl | 23 +++ ~~ 68c197f Jon Rafkind rafk...@racket-lang.org 2010-11-03 15:15 : | clean up line numbers code : M collects/framework/private/text.rkt | 172 +++ =[ Overall Diff ]=== collects/framework/private/text.rkt ~~~ --- OLD/collects/framework/private/text.rkt +++ NEW/collects/framework/private/text.rkt @@ -3707,17 +3707,25 @@ designates the character that triggers autocompletion showing-line-numbers? set-line-numbers-color)) +;; draws line numbers on the left hand side of a text% object (define line-numbers-mixin (mixin ((class-interface text%)) (line-numbers%) (super-new) (inherit get-visible-line-range get-visible-position-range find-position + line-location line-start-position line-end-position) (init-field [line-numbers-color black]) (init-field [show-line-numbers? #t]) + + ;; maybe make this a configurable field? + (define number-space 1) + ;; add an extra 0 so it looks nice + (define number-space+1 (string-append number-space 0)) + (define cached-snips (list)) (define need-to-recalculate-snips #f) @@ -3739,153 +3747,37 @@ designates the character that triggers autocompletion (send style-list basic-style))]) (send std get-font))) - ;; get the y position of a snip - (define (get-snip-y snip) - (define x (box 0)) - (define y (box 0)) - (send this get-snip-location snip x y) - (unbox y)) - - ;; returns an ordered list of snip y positions - ;; the point is to get a list of snips positions that define - ;; where lines start. for snips that take up more than one - ;; line, like images, subsequent snips might be merged in with - ;; the line that the image sits on. if you have - ;; 2: II - ;; IIx - ;; Where the I's represent a contiguous image and the 'x' is just a letter - ;; then the 'x' snip shouldn't produce a line, it will be on line 2 along - ;; with the I image. - ;; To compute this we just test if the 'x' snip's y position is within the - ;; bounds of the I image [I.y, I.y + I.height]. It might look like we should - ;; test if the entire bounds of the 'x' snip is within the bounds of the image, - ;; that is test the height of 'x' too, but the bottom of 'x' might be below - ;; the bottom of I. In that case they are still considered to be on the same - ;; line, so we only consider the top of 'x' (its y location). - (define (snip-heights snip dc) - (define-struct snip-size (start end)) - (define (get-size snip) - (define x (box 0)) - (define y (box 0)) - (send this get-snip-location snip x y) - (define width (box 0)) - (define height (box 0)) - (send snip get-extent dc (unbox x) (unbox y) width height) - (make-snip-size (unbox y) (+ (unbox y) (unbox height - ;; size2 can be merged into size1 - (define (can-merge? size1 size2) - ;; just consider the top of the second snip - (and (between (snip-size-start size1) - (snip-size-start size2) - (snip-size-end size1)) - ;; and ignore its bottom - #; - (between (snip-size-start size1) - (snip-size-end size2) - (snip-size-end size1 - ;; merge snips heights together for when snips span multiple lines - (define (merge-sizes sizes) - (match sizes - [(list size1 size2 rest ...) - (if (can-merge? size1 size2) - (merge-sizes (cons size1 rest)) - (cons size1 (merge-sizes (cons size2 rest] - [else sizes])) - - ;; get a list of all snips, sort them, merge them - (let loop ([all '()] -
[racket-dev] OS X: new GC icon... gets left behind?
I like the new gc cursor. I see something interesting though, when DrRacket starts spinning hard, which is that the recycle cursor gets left wherever it was, and the traditional pizza returns. This is more in the realm of curiosity than bug, though. John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev