Commit 60662b1
Fix crash navigation off-by-1 and component name misclassification
Crash items off-by-1:
- Analyzer uses 1-based line numbers (lineNumber++ before processing)
- data-line stored as c.lineNumber-1 (0-based for navigateTo)
- Display text kept as c.lineNumber (already correct 1-based)
- Same fix for comp.sampleLine (1-based) → data-line stores sampleLine-1
Component names showing timestamps instead of channel names:
- LoggerTime column matched 'logger' keyword in channel type list
- Channel type was checked BEFORE timestamp type, so LoggerTime → channel
- Fix: reorder KNOWN_COLUMNS so timestamp is evaluated first
- Now LoggerTime matches 'loggertime' in timestamp keywords → correctly typed
- channelCol picks up the actual 'Channel' column (index 5) → real component names
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 94dbaab commit 60662b1
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
20 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11440 | 11440 | | |
11441 | 11441 | | |
11442 | 11442 | | |
11443 | | - | |
| 11443 | + | |
11444 | 11444 | | |
11445 | 11445 | | |
11446 | | - | |
| 11446 | + | |
11447 | 11447 | | |
11448 | 11448 | | |
11449 | 11449 | | |
| |||
11467 | 11467 | | |
11468 | 11468 | | |
11469 | 11469 | | |
11470 | | - | |
| 11470 | + | |
11471 | 11471 | | |
11472 | 11472 | | |
11473 | 11473 | | |
| |||
0 commit comments