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
racket-base-requires does not preserve requires for submodules #76
Comments
Yep. This is a known limitation. But I notice that this caveat in the doc string for
Did not get copied into the doc string for At the very least, I should update the doc string. Last I had looked at it, though, it was not clear to me how to remove this limitation. I can take another look, in case it's more clear to me, now. |
Ahhh. I see. Could you use rackets |
The limitation is with Maybe I could traverse the file to discover sub-modules (and sub-sub-modules and so on), run Another tack would be to submit a PR against Honestly so far I've found it only a mild nuisance, sometimes needing to manually add back a missing require. I feel like the feature is usually saving me a dozen manual changes, and 1 step backward isn't a big deal. So I haven't felt super-motivated to fix it, especially if it's a lot of work. However I agree it's technically not correct. And I might feel differently working with very submodule-heavy source files. |
I've just been playing with Gah, I see why this is difficult. Oh well. :) Maybe a warning message when either command is run (and submodules are present?) saying "hey you might have broken submodules" is in order, to stop anyone else from being surprised? |
#lang racket (module+ test list->set)
gets rewritten to
#lang racket/base (module+ test list->set)
which will then error, because
list->set
comes fromracket/set
notracket/base
The text was updated successfully, but these errors were encountered: