Skip to content

Dump(cuecontext.New()): Litter does not, spew does #52

@rudifa

Description

@rudifa

Describe the bug

sanity-io litter.Dump(ctx) fails to dump a moderately complex struct cuecontext.New() where spew.Dump(ctx) dumps over 100 lines.

Both dumpers print a reasonable representation of a simple demo struct

To Reproduce

Run the main.go shown in the next comment and observe results (also reproduced below)

Expected behavior

A detailed dump of ctx by litter, equivalent to that from spew

Observed behavior

From litter.Dump(ctx) I get just a single line:

&cue.Context{}

Which versions of Sanity are you using?

v1.5.5
@atombender atombender tagged this Apr 28, 2022

What operating system are you using?

try-litter % sw_vers
ProductName: macOS
ProductVersion: 13.6.1
BuildVersion: 22G313

Which versions of Node.js / npm are you running?

try-litter % npm -v && node -v
9.8.0
v20.5.1

Additional context

Security issue?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions