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 摘要。