Commit a112c6d
fix(analyzer): defensive skip when second_pass references untracked file
In source_analyzer.second_pass, the list of files we iterate can include
paths that first_pass did not add to self.files (e.g. parse errors,
LSP-induced timeouts, or rare edge cases where a candidate file is
present in the input list but never makes it into the files map).
Previously this raised KeyError and aborted the entire index. Hit on
sympy/polys/distributedmodules.py during bench calibration of sympy-12481.
Skip with a WARN log instead so a single bad file no longer takes down
the whole index.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e52650b commit a112c6d
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
| |||
0 commit comments