Errortrace bug with racket/load and begin-for-syntax
Open
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 8
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
When I have the following file (note that it uses racket/load:
#lang racket/load
(begin-for-syntax
(module foo racket
(define x 5)
(provide x)
(displayln "here")))
(require 'foo)
I get the following error message:
racket/racket/share/pkgs/errortrace-lib/errortrace/errortrace-lib.rkt:256:58: require: namespace mismatch;
reference to a module that is not available
reference phase: 0
referenced module: "/Users/leif/racket/racket/share/pkgs/errortrace-lib/errortrace/errortrace-key.rkt"
referenced phase level: 0
in: errortrace-key
errortrace...:
context...:
/Users/leif/test5.rkt: [running body]
When I turn off debugging in DrRacket, or don't link with errortrace this error does not happen adn as expected: "here" prints out to the console.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the example in test5.rkt with racket/load, begin-for-syntax, and debugging enabled. Start at errortrace/errortrace-lib.rkt:256 and the referenced errortrace-key.rkt, then verify that the namespace mismatch no longer occurs and that "here" is printed.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100