[TODO] nimsuggest: allow handling random files not yet known #9721
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 @PMunch @krux02
docs say https://nim-lang.github.io/Nim/nimsuggest.html
this wasn't true until this PR
it's a very useful feature that allows you to handle nim files not covered by your initial project.nim
note
my previous approach was [superseded] nimsuggest: fix nimsuggest#96 ; nimsuggest can handle files not yet known #9715 ; it was very simple (2 line change) and worked in a number of cases (and was more efficient, since it didn't require full recompilation on unknown files), but led to crashes in other cases so wasn't as robust as this PR
if there's a better way than updating input file (given by --autoupdatedMainFile:file) I'm happy to take suggestions; otherwise this PR works fine