-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
error when eval'ing definitions with interpolated variables if module has a docstring during bootstrap #22288
Comments
If you are reporting an error you should actually give the error message.... In this case it's LoadError("sysimg.jl", 428, UndefVarError(:T)) And it only happens if you put it before the doc system is ready (i.e. add this in a file from Base is not enough to reproduce). It is expected (so not a critical bug, but can possibly be improved) that the doc system accept only limited syntax before it is defined. |
Sorry for not mentioning the error message. I don't know when the doc system is ready, but I could reproduce this bug by putting the code in files close to either the beginning or the end of "sysimg.jl". It didn't appear to me that the doc system accepts a limitied syntax, as e.g. in test.jl the normal syntax for documenting the module is accepted: the problem comes then if I try to use |
It'll not error if you put it after
And that's the limitted syntax I'm talking about. |
Ok, I didn't see |
It's not. The evaluation rule is. |
To reproduce, add this in a file from
Base
(listed in "sysimg.jl").It's enough to attach the docstring to
:A
before the module declaration (or toA
after) to solve the problem.The text was updated successfully, but these errors were encountered: