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

Docs no longer render record types with named fields #5511

Open
rlmark opened this issue Dec 17, 2024 · 1 comment
Open

Docs no longer render record types with named fields #5511

rlmark opened this issue Dec 17, 2024 · 1 comment
Labels

Comments

@rlmark
Copy link
Contributor

rlmark commented Dec 17, 2024

Including a record type in the @source{} element used to render the record type with its named fields. There may have been a regression such that the docs or display command no longer render the record type as a record.

I've also attached this as a transcript.

recordTypeIssue.md

scratch/main> builtins.mergeio
type Blah = {
  foo: Nat,
  bar: Text
}

testRecord = {{
This is a doc with a record type

@source{type Blah}
}}

View works great!

scratch/main> add
scratch/main> view Blah

The docs or display command is where it does not render:

scratch/main> display testRecord

Environment (please complete the following information):

  • unison version: release/0.5.29 (built on 2024-12-02)
  • OS/Architecture: macOS 14.5, M1

Additional context

@rlmark rlmark added the bug label Dec 17, 2024
@rlmark
Copy link
Contributor Author

rlmark commented Dec 18, 2024

Note, originally reported by @etorreborre, this issue is likely a duplicate of #5272.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant