Store line numbers of imports in the cache metadata #4533
Merged
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.
This allows incremental modes to generate error messages that are
both better and more consistent with non-incremental modes.
Storing the data in a parallel array is kind of ugly and was done for
consistency with dep_prios. It might be worth doing a refactor, though
any other way will make the json bigger, which is presumbably why
dep_prios was done with an array.
This is a big yak-shave: this import line number thing was the root cause of differing error message behavior when using fine-grained cache info.