isographlabs / isograph

The UI framework for teams that move fast — without breaking things.
MIT License
202 stars 9 forks source link

`text_with_carats` panics and has no unit tests #39

Closed rbalicki2 closed 2 months ago

rbalicki2 commented 2 months ago
  field Query.PetDetailRoute($id: ID!) @component {
    pet(id: 1) {
      __typename
    }
    pet(id: $id) {
      PetTaglineCard
      name
      id
      bar: id
      baz: id
    }
  }

then run pnpm watch-pet-demo:

pnpm watch-pet-demo

> @ watch-pet-demo /Users/rbalicki/code/isograph
> ./target/debug/isograph_cli --config ./demos/pet-demo/isograph.config.json --watch

Starting to compile.
Error when compiling.

thread 'main' panicked at crates/common_lang_types/src/text_with_carats.rs:73:40:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 ELIFECYCLE  Command failed with exit code 101.

Uncovered when investigating issue #24