Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Packages of files don't create any CodeObject entries

未关闭
#331 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
32/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
ruby
领域
devtools

调研方向

从 issue 中链接的示例项目开始,复现包含空 classMap 条目的生成 AppMap。跟踪针对文件包的 classMap 生成过程,并验证生成的 AppMap 包含有效的 CodeObject 条目,且其序列图能够在没有空对象的情况下渲染。

由索引模型根据 Issue 内容生成。

描述

bug

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getappmap/appmap-ruby 的其他 Issue

查看 getappmap/appmap-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。