Skip to content

behold demo terraform-estate draws unknown-kind boxes even with the lexicon installed beside behold #484

Closed

Description

@lex00

Found while checking a report on #474 that with the terraform lexicon installed, every zoom of example-terraform-estate ran chant graph without the lexicon and showed a lint error. That part didn't reproduce on main (0ba89c8, plus #483's fix, which only touches failed reads) with chant 0.95.0: served with the lexicon resolvable from the workspace root, every zoom (components, logical, composites, resources, attributes) draws both roots, 35 nodes and 55 edges, and no route answers an error. The one route that runs a plain chant graph on the primary per load is /api/resources, and it returns early for a terraform primary.

What does reproduce: behold demo terraform-estate with @intentius/chant-lexicon-terraform and @cdktn/hcl2json installed beside behold, as the README and the demo's refusal say to, draws two boxes:

prod: unreadable, unknown-kind: no built-in kind or pinned package supplies kind terraform; known kinds: chant, other, workspace
platform: unreadable, unknown-kind: ...

Since #464 the estate is a declared workspace, and kinds come from chant workspace ls run in the demo copy. That chant resolves the pinned lexicon from the copy's own root, which has no node_modules, so it never sees the lexicon behold found. The demo's preflight looks beside behold; chant looks beside the workspace.

Ways out: have the demo point the copy at the lexicon behold resolved (a node_modules link in the copy, or whatever chant's pin resolution honours), or make the preflight check what chant will check and say how to install it in the copy. Either way the README's "Without them the demo refuses with that exact line" should stay true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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