Packages of files don't create any CodeObject entries
还没有人认领这个 Issue。
评估
调研方向
从 issue 中链接的示例项目开始,复现包含空 classMap 条目的生成 AppMap。跟踪针对文件包的 classMap 生成过程,并验证生成的 AppMap 包含有效的 CodeObject 条目,且其序列图能够在没有空对象的情况下渲染。
由索引模型根据 Issue 内容生成。
描述
Given the following sample project: https://gist.github.com/dustinbyrne/c3943c4857d2ad65dea92c1c944da7d7
The following AppMap is generated containing an empty object within the classMap array. This prevents the sequence diagram from rendering.
{
"version": "1.12.0",
"metadata": {
"app": "my-test",
"language": { "name": "ruby", "engine": "ruby", "version": "3.1.0" },
"client": {
"name": "appmap",
"url": "https://github.com/applandinc/appmap-ruby",
"version": "0.99.4"
}
},
"classMap": [{}],
"events": [
{
"id": 1,
"event": "call",
"thread_id": 1820,
"defined_class": "Test",
"method_id": "demo",
"path": "test.rb",
"lineno": 7,
"static": false,
"parameters": [],
"receiver": {
"class": "Test",
"object_id": 1800,
"value": "#<Test:0x00007fce667ab2c8>"
}
},
{
"id": 2,
"event": "call",
"thread_id": 1820,
"defined_class": "Test",
"method_id": "print",
"path": "test.rb",
"lineno": 12,
"static": false,
"parameters": [
{
"name": "msg",
"class": "String",
"object_id": 1840,
"value": "Hello World",
"kind": "req"
}
],
"receiver": {
"class": "Test",
"object_id": 1800,
"value": "#<Test:0x00007fce667ab2c8>"
}
},
{
"id": 3,
"event": "return",
"thread_id": 1820,
"parent_id": 2,
"elapsed": 4.868998075835407e-6,
"elapsed_instrumentation": 5.296599920256995e-5
},
{
"id": 4,
"event": "return",
"thread_id": 1820,
"parent_id": 1,
"elapsed": 7.210700277937576e-5,
"elapsed_instrumentation": 7.861099584260955e-5
}
]
}
- 主要语言
- Ruby
- 星标
- 101
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getappmap/appmap-ruby 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
getappmap/appmap-ruby#363 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
getappmap/appmap-ruby#360 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
getappmap/appmap-ruby#357 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
getappmap/appmap-ruby#355 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
getappmap/appmap-ruby#344 · 2 条评论 · 1 个 reaction ·
查看 getappmap/appmap-ruby 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
zerocracy/judges-action#2743 ·
维护者通常 8 天内回复
-
content good first issue
难度 2/5 1-3 小时 新手友好度 66/100
rubyevents/rubyevents#2182 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
TarteelAI/quranic-universal-library#821 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Homebrew/homebrew-cask#293134 ·
维护者通常 1 天内回复