Skip to content

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

Description

@LeifAndersen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions