racket / racket/errortrace

Errortrace bug with racket/load and begin-for-syntax

Open
#8 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.