[superseded] partially address issue #8217 by running user config.nims if possible #8233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/cc @Araq
this PR runs user's config.nims if it exists and another nims hasn't also ran before, allowing to apply user configuration globally via nimscript instead of the more limited language nim.cfg
ideally, we would instead do the following:
but that logic fails because call(EDIT: FIXED)runNimScript
multiple times in errors with:???(0, 0) Error: internal error: n is not nil
(see #8235)
TODO in future PR: apply that same logic to
nimsuggest.nim
(and refactor to remove code duplication between nimsuggest.nim and nim.nim)