add more debuggin info to the thread-safe-resolver.rkt planet test to try to debug it on drdr
This commit is contained in:
parent
6823941080
commit
e88c8dbaa0
|
@ -175,6 +175,12 @@ See the scribble documentation on the planet/resolver module.
|
||||||
(case-lambda
|
(case-lambda
|
||||||
[(name) (void)]
|
[(name) (void)]
|
||||||
[(spec module-path stx load? orig-paramz)
|
[(spec module-path stx load? orig-paramz)
|
||||||
|
(when (show-planet-resolver-invocations)
|
||||||
|
(eprintf "resolver invoked: ~s ~s\n" spec module-path)
|
||||||
|
(for ([x (in-list (continuation-mark-set->context (current-continuation-marks)))])
|
||||||
|
(eprintf " ~s\n" x))
|
||||||
|
(eprintf "\n"))
|
||||||
|
|
||||||
;; ensure these directories exist
|
;; ensure these directories exist
|
||||||
(try-make-directory* (PLANET-DIR))
|
(try-make-directory* (PLANET-DIR))
|
||||||
(try-make-directory* (CACHE-DIR))
|
(try-make-directory* (CACHE-DIR))
|
||||||
|
@ -185,6 +191,8 @@ See the scribble documentation on the planet/resolver module.
|
||||||
load?
|
load?
|
||||||
orig-paramz)]))
|
orig-paramz)]))
|
||||||
|
|
||||||
|
(define show-planet-resolver-invocations (make-parameter #f))
|
||||||
|
|
||||||
(require racket/tcp
|
(require racket/tcp
|
||||||
racket/port
|
racket/port
|
||||||
racket/match
|
racket/match
|
||||||
|
@ -215,7 +223,8 @@ See the scribble documentation on the planet/resolver module.
|
||||||
get-planet-module-path/pkg
|
get-planet-module-path/pkg
|
||||||
download?
|
download?
|
||||||
install?
|
install?
|
||||||
(struct-out exn:fail:planet))
|
(struct-out exn:fail:planet)
|
||||||
|
show-planet-resolver-invocations)
|
||||||
|
|
||||||
;; if #f, will not install packages and instead raise a exn:fail:install? error
|
;; if #f, will not install packages and instead raise a exn:fail:install? error
|
||||||
(define install? (make-parameter #t))
|
(define install? (make-parameter #t))
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
resolve-planet-path
|
resolve-planet-path
|
||||||
install?
|
install?
|
||||||
download?
|
download?
|
||||||
get-planet-module-path/pkg)
|
get-planet-module-path/pkg
|
||||||
|
show-planet-resolver-invocations)
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require planet/util
|
(require planet/util
|
||||||
rackunit
|
rackunit
|
||||||
racket/port)
|
racket/port
|
||||||
|
planet/resolver)
|
||||||
|
|
||||||
(define debug? #t)
|
(define debug? #t)
|
||||||
|
|
||||||
|
(when debug?
|
||||||
|
(show-planet-resolver-invocations #t))
|
||||||
|
|
||||||
(define (install-one package-spec key)
|
(define (install-one package-spec key)
|
||||||
(define op (open-output-string))
|
(define op (open-output-string))
|
||||||
(parameterize ([current-output-port op]
|
(parameterize ([current-output-port op]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user