Commit 7944e43
fix: handle Windows 8.3 short-name path mismatch in target block reordering
On Windows, Path.resolve() expands 8.3 short names for directories but not
always for files. After project_root_path.resolve() converts RUNNER~1 to
runneradmin, file_path.resolve() may still return the 8.3 form, causing
relative_to() to raise ValueError and silently returning empty target_code.
Wrap the cosmetic reordering block in try/except to match the existing pattern
in process_file_context, preventing the crash without any correctness loss.
Co-authored-by: Aseem Saxena <aseembits93@users.noreply.github.com>1 parent 04b1e30 commit 7944e43
1 file changed
Lines changed: 8 additions & 5 deletions
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments