Skip to content

Incorrect package computation #354

Open
@sorawee

Description

@sorawee

https://docs.racket-lang.org/2d/ shows that #lang 2d is a part of the 2d-test package. It should actually be 2d-lib.

The root of the problem is that defmodulelang (and/or defmodule with #:lang) should not treat the input name as a final module-path to be used. In this particular case, (require 2d) loads 2d/2d-test/main.rkt, which doesn't exist and is in an incorrect package. The correct module path to require should be (require 2d/lang/reader), which loads 2d/2d-lib/lang/reader.rkt in 2d-lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions