-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Fixed the error that the configuration file pointed to by the --configpath
option was not read and loaded.
#3012
base: master
Are you sure you want to change the base?
Conversation
fix a lot of bug |
I tried to use as few changes as possible to make sure that the behavior when no profile was specified was the same as before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that using runtime.builtin
disable is not the best way to filter out the standard libraries in the environment.
Something should be done in export.gatherGlobal
as said in this comment: #2997 (comment)
Maybe a new option to control that would be even better. 😕
Anyway this PR aims to fix the --configpath
issue so it is no worse. 👍
And if you believe it can close your original issue, you should include this in the first line of your PR description (just edit it is enough):
fixes #3008, fixes #2997
=> this let github correctly links this PR to close the corresponding issue on merge 😄
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue
I don't think this PR will fix #2977 on its own 😕 . For general users when they do a |
Okay, I'll remove the change issue. |
fixes #3008, fixes #2997
Info
Follow-up on my issue #3008 .Screenshots of some of the effects can also be found in the issue.
This commit is intended to fix a bug where exporting a document via the command line could not read the configuration file specified with the '--configpath' option.
ENV
.luarc.json
filefrom: #2997
.luarc.doc.json
command
test lua file
result
output json doc file:
doc.json
Add the terminal output of the print statement
Postscript
I believe that with the fix of this bug, you can use the document export function, no need to make changes to the source code, and only need the configuration file to filter out the standard libraries in the environment.
If I can help you, then my work is meaningful.