-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect package computation #354
Comments
But also, should |
I think This doesn't contradict your conclusion about the docs, but just in case: I don't think that |
It's still unclear to me if this is the fault of In
This correctly determines the package, but what should go in
|
I agree.
I notice that for most, it's usually something like
|
Another thing is, how much magic do we want from |
I think it's a mixture. I see framework, mrlib, redex, 2htdp, htdp, images, math, plot, simple-tree-markup, and optimizer. It may be that the other way is more popular, tho. I do agree that if the documentation needs to look for language, it should be looking for both the submod and the lang/reader variant. I'm not sure what's the right approach in general here, however. |
My feeling is that the right approach would not be backward-compatible. Here's an example. But Is it OK to break links? |
I think that there are a bunch of languages were This would still be backwards incompatible for some of the links (like |
https://docs.racket-lang.org/2d/ shows that
#lang 2d
is a part of the2d-test
package. It should actually be2d-lib
.The root of the problem is that
defmodulelang
(and/ordefmodule
with#:lang
) should not treat the input name as a final module-path to be used. In this particular case,(require 2d)
loads2d/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 loads2d/2d-lib/lang/reader.rkt
in2d-lib
.The text was updated successfully, but these errors were encountered: