Skip to content

[BUG] Scaffolding forum example with lit panics #477

Description

@mattyg

Describe the bug

I'm not sure if the forum example is supposed to support lit, but currently it panics:

[holonix:~/Projects/Holochain/scaffolding]$ cargo run --bin hc-scaffold -- --template lit example forum -pnpm --setup-nix false
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.77s
     Running `target/debug/hc-scaffold --template lit example forum -pnpm --setup-nix false`
thread 'main' panicked at /home/matt/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-plugin-typescript-0.91.8/src/generation/context.rs:196:7:
Debug Panic Expected text `]`, but found `y`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior

A message that "lit is not supported", or else scaffolding the forum example successfully.

System information

  • OS: ubuntu 22.04
  • Scaffolding and Nix Version: 4a8e44c

Steps to reproduce

Run cargo run --bin hc-scaffold -- --template lit example forum -pnpm --setup-nix false

Screenshots

n/a

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions