Files
pinmap-to-pinlist/docs/bugs.md

81 lines
4.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Bug 跟踪表
| Bug ID | 严重程度 | Bug 描述 | 复现步骤 | 期望行为 | 实际行为 | 状态 | 关联功能 |
|--------|---------|---------|---------|---------|---------|------|---------|
| BUG-001 | 中 | run.bat 换行符 + lines 设置不匹配 Windows | 在 Windows 下运行 run.bat | CRLF 换行,仅保留 `mode con cols=80` | Unix LF 换行,包含多余 `lines=50` | 已修复 | F005 |
| BUG-002 | 高 | 周长计算公式错误 | 输入 15×15 网格 + 60 Pin | 验证通过 `(rows+cols)*2=60` | 提示不匹配 `2*rows+2*cols-4=56` | 已修复 | F006 |
| BUG-003 | 中 | 双向转换未读取模板样式 | 使用模板文件进行 MAP↔List 转换 | 读取并应用模板样式 | 使用默认样式 | 已修复 | F007 |
| BUG-004 | 中 | 不支持循环处理流程 | 转换完成后继续操作 | 循环等待下一个文件,输入 Q 返回主菜单 | 处理完直接退出 | 已修复 | F008 |
| BUG-005 | 高 | 模板文件名/路径错误 | PinList↔PinMAP 转换时读取模板 | PinMAP 模板为 PinMAP-Template.xlsxPinList 模板为 PinList-Template.xlsx | v1.5.4 只改文件名未改搜索路径,模板在 Code/src/Template/ 下但代码在根目录找 | 已修复 | v1.5.5 |
| BUG-006 | 高 | PinList→PinMAP 上边 Name 与左边 Name 同行(数据无误但肉眼混淆) | 12×12 PinMapPinList→PinMAP 转换后查看输出 | 每条边的 Name 和 Number 在独立行/列区域,肉眼可辨 | v1.5.4 上边 Name 在 row 2与左边 Name(row 2)同行3 条边数据混在同一行 | 已修复 | v1.5.5 |
| BUG-007 | 高 | v1.6 PinList→PinMAP 上方引脚合并到标题行,结构缺行 | PinList(QFN60)→PinMAP 转换,查看输出 | 第1行独立标题合并单元格第2-3行为上方引脚序号和PinName共21行 | 标题与上方引脚合并为一行上方引脚无独立行共19行缺2行 | **已修复** | F013, F016 |
---
## BUG-007 完整对比数据用户原始反馈2026-06-12
### 程序生成v1.6 实际输出,已转为 CSV
```
QFN60,Pin60,Pin59,Pin58,Pin57,Pin56,Pin55,Pin54,Pin53,Pin52,Pin51,Pin50,Pin49,Pin48,Pin47,Pin46,
,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,
1,Pin1,,,,,,,,,,,,,,Pin45,45
2,Pin2,,,,,,,,,,,,,,Pin44,44
3,Pin3,,,,,,,,,,,,,,Pin43,43
4,Pin4,,,,,,,,,,,,,,Pin42,42
5,Pin5,,,,,,,,,,,,,,Pin41,41
6,Pin6,,,,,,,,,,,,,,Pin40,40
7,Pin7,,,,,,,,,,,,,,Pin39,39
8,Pin8,,,,,,,,,,,,,,Pin38,38
9,Pin9,,,,,,,,,,,,,,Pin37,37
10,Pin10,,,,,,,,,,,,,,Pin36,36
11,Pin11,,,,,,,,,,,,,,Pin35,35
12,Pin12,,,,,,,,,,,,,,Pin34,34
13,Pin13,,,,,,,,,,,,,,Pin33,33
14,Pin14,,,,,,,,,,,,,,Pin32,32
15,Pin15,,,,,,,,,,,,,,Pin31,31
,Pin16,Pin17,Pin18,Pin19,Pin20,Pin21,Pin22,Pin23,Pin24,Pin25,Pin26,Pin27,Pin28,Pin29,Pin30,
,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
```
### 期望输出(用户提供的正确 PinMAP
```
"QFN60 6*6*0.85mm
xxx
版本xxxx",,,,,,,,,,,,,,,,,,
,,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,,
,,Pin60,Pin59,Pin58,Pin57,Pin56,Pin55,Pin54,Pin53,Pin52,Pin51,Pin50,Pin49,Pin48,Pin47,Pin46,,
1,Pin1,,,,,,,,,,,,,,,,Pin45,45
2,Pin2,,,,,,,,,,,,,,,,Pin44,44
3,Pin3,,,,,,,,,,,,,,,,Pin43,43
4,Pin4,,,,,,,,,,,,,,,,Pin42,42
5,Pin5,,,,,,,,,,,,,,,,Pin41,41
6,Pin6,,,,,,,,,,,,,,,,Pin40,40
7,Pin7,,,,,,,,,,,,,,,,Pin39,39
8,Pin8,,,,,,,,,,,,,,,,Pin38,38
9,Pin9,,,,,,,,,,,,,,,,Pin37,37
10,Pin10,,,,,,,,,,,,,,,,Pin36,36
11,Pin11,,,,,,,,,,,,,,,,Pin35,35
12,Pin12,,,,,,,,,,,,,,,,Pin34,34
13,Pin13,,,,,,,,,,,,,,,,Pin33,33
14,Pin14,,,,,,,,,,,,,,,,Pin32,32
15,Pin15,,,,,,,,,,,,,,,,Pin31,31
,,Pin16,Pin17,Pin18,Pin19,Pin20,Pin21,Pin22,Pin23,Pin24,Pin25,Pin26,Pin27,Pin28,Pin29,Pin30,,
,,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,,
```
### 差异明细
| # | 行号(期望) | 内容 | 实际 | 期望 |
|---|-------------|------|------|------|
| 1 | 第1行 | 标题 | `QFN60`(单行,上方引脚混入同行) | `"QFN60 6*6*0.85mm\nxxx\n版本xxxx"`(多行合并单元格,独占整行) |
| 2 | 第2行 | 上方序号 | **缺失** | `,,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,,` |
| 3 | 第3行 | 上方PinName | **缺失** | `,,Pin60,Pin59,Pin58,...Pin47,Pin46,,` |
| 4 | 第4-18行 | 左右引脚 | 正确 | 正确 |
| 5 | 第19行 | 下方PinName | 正确 | 正确 |
| 6 | 第20行 | 下方序号 | 正确 | 正确 |
| 7 | 总行数 | — | **19 行** | **21 行(缺 2 行)** |
**根因判断:** PinList→PinMAP 生成时上方Top引脚未创建独立的序号行和 PinName 行期望第2-3行而是被错误地合并到了标题行第1行导致输出结构不完整。