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

Dumping doesn't work at compile time #138

Open
flyx opened this issue Aug 30, 2023 · 0 comments
Open

Dumping doesn't work at compile time #138

flyx opened this issue Aug 30, 2023 · 0 comments

Comments

@flyx
Copy link
Owner

flyx commented Aug 30, 2023

import yaml
type
  Node = ref object
    name1: string = "A"
    name2: string = "B"
static:
  echo Dumper().dump(Node())

Compiler output:

Error: unhandled exception: field 'sym' is not accessible for type 'TNode' using 'kind = nkNilLit' [FieldDefect]

This seems to happen somewhere in macro execution. Not entirely sure where though.

flyx added a commit that referenced this issue Aug 30, 2023
 * this is a prerequisite to getting dumping to work,
   but dumping is still blocked by #138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant