Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions macro-debugger/tests/macro-debugger/tests/collects.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@
(define (rel+mod->mod rel mod)
(let* ([rel (resolved-module-path-name rel)]
[rel (if (pair? rel) (car rel) rel)])
(if (pair? mod)
#f ;; give up on submodules for now; FIXME
(let-values ([(base file dir?) (split-path rel)])
(path->mod (simplify-path (build-path base mod)))))))
(cond
[(pair? mod) #f] ;; give up on submodules for now; FIXME
[(not (path? rel)) #f] ;; give up on non-path modules (e.g., lazy-require proxies)
[else
(let-values ([(base file dir?) (split-path rel)])
(path->mod (simplify-path (build-path base mod))))])))

(define (path->mod path)
(cond [(for/or ([c (current-library-collection-paths)]) (path->mod* path c))
Expand Down