scaffolding icon indicating copy to clipboard operation
scaffolding copied to clipboard

[BUG] Scaffolding forum example with lit panics

Open mattyg opened this issue 9 months ago • 2 comments

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: https://github.com/holochain/scaffolding/commit/4a8e44c0d653b2b89ecda582336446e3d3581223

Steps to reproduce

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

Screenshots

n/a

Additional context

n/a

mattyg avatar Mar 20 '25 18:03 mattyg

It would be good if this was caught by CI tests as well

mattyg avatar Mar 20 '25 18:03 mattyg

Thanks for reporting this bug. Lit should be supported for the forum example. Investigating.

c12i avatar Mar 26 '25 14:03 c12i