Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages of files don't create any CodeObject entries #331

Open
dustinbyrne opened this issue Jul 7, 2023 · 1 comment
Open

Packages of files don't create any CodeObject entries #331

dustinbyrne opened this issue Jul 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dustinbyrne
Copy link
Contributor

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
    }
  ]
}
@dustinbyrne dustinbyrne added the bug Something isn't working label Jul 7, 2023
@kgilpin
Copy link
Contributor

kgilpin commented Jul 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants