samth / test-bugs

2 stars 0 forks source link

In DrRacket only, can't require a module that imports `racket/draw' at two different phases #152

Open racket-bug-submit opened 12 years ago

racket-bug-submit commented 12 years ago
Originally submitted by Neil Toronto on: Fri Mar 09 14:00:02 -0500 2012

Found when running images tests after a git pull. This error causes "images/tests/icon-tests.rkt" to fail when run in DrRacket. The test requires images/compile-time', which itself requiresracket/draw' normally and for syntax.

Best guess is that it has to do with recent changes to support submodules.

Steps to Reproduce:

Run this program in DrRacket:

lang racket/load

(module provider racket/base
  (require (for-syntax racket/draw)
           racket/draw))

(require 'provider)

Get this error:

link: reference (phase 1) to a variable in module "/collects/racket/draw/private/font.rkt" that is uninitialized (phase level 0); reference appears in module: "/collects/racket/draw/private/dc-path.rkt" in: font%

The program runs fine from command-line Racket.

Release:
5.2.900.1--2012-03-09(54c8b51/g)
Environment:
unix "Linux schroder 2.6.38-13-generic #56-Ubuntu SMP Tue Feb 14 12:39:59 UTC 2012 x86_64
 x86_64 x86_64 GNU/Linux" (x86_64-linux/3m) (get-display-depth) = 32
Human Language: english
(current-memory-use) 317526688
Links: (links) = (); (links #:user? #f) = (); (links #:root? #t) = (); (links #:user? #f
 #:root? #t) = ()

Collections:
("/home/neil/.racket/5.2.900.1/collects"
 (non-existent-path))
("/home/neil/plt/collects"
 ("wxme" "texpict" "compiler" "typed" "games" "algol60" "browser" "file" "readline"
 "dynext" "scribblings" "mzcom" "trace" "profile" "data" "sirmail" "parser-tools"
 "tex2page" "scriblib" "swindle" "schemeunit" "r6rs" "xrepl" "mzlib" "handin-client"
 "repo-time-stamp" "mysterx" "mrlib" "scheme" "combinator-parser" "html" "test-engine"
 "version" ".gitignore" "make" "ffi" "mzscheme" "picturing-programs" "hierlist"
 "teachpack" "at-exp" "lazy" "scribble" "openssl" "defaults" "racket" "handin-server"
 "2htdp" "drscheme" "help" "eopl" "racklog" "drracket" "icons" "db" "errortrace"
 "preprocessor" "rackunit" "rnrs" "string-constants" "meta" "slatex" "graphics" "redex"
 "reader" "plai" "honu" "config" "stepper" "frtime" "unstable" "r5rs" "planet" "tests"
 "s-exp" "embedded-gui" "info-domain" "guibuilder" "syntax" "launcher" "typed-scheme"
 "syntax-color" "srfi" "test-box-recovery" "xml" "images" "plot" "datalog" "sgl" "htdp"
 "setup" "lang" "raco" "gui-debugger" "framework" "web-server" "de!
 inprogramm" "slideshow" "macro-debugger" "typed-racket" "net" "mred"))

Computer Language: (("Determine language from source") (#(#t print mixed-fraction-e #f #t
 debug) (default) #() "#lang racket\n" #t #t))
This bug was converted from Gnats bug 12625.

[anon-submit; neil.toronto at gmail dot com]