graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

matchstick fails with panick when using graph-ts version above 0.19.20

Open kmjones1979 opened this issue 2 years ago • 1 comments

Which packages are impacted by your issue?

@graphprotocol/graph-ts

Describe the issue

Gnosis reported a dependency issue when trying to use graph test

$_ graph test   
Skipping download/install step because binary already exists at /Users/kevinjones/.config/yarn/global/node_modules/binary-install-raw/bin/0.6.0

___  ___      _       _         _   _      _
|  \/  |     | |     | |       | | (_)    | |
| .  . | __ _| |_ ___| |__  ___| |_ _  ___| | __
| |\/| |/ _` | __/ __| '_ \/ __| __| |/ __| |/ /
| |  | | (_| | || (__| | | \__ \ |_| | (__|   <
\_|  |_/\__,_|\__\___|_| |_|___/\__|_|\___|_|\_\
    
Compiling...

💬 Compiling bulbafloor...
thread 'main' panicked at '🆘 Internal error during compilation: No such file or directory (os error 2).
Command path: "/Users/kevinjones/projects/thegraph/bulbafloor/packages/subgraph/node_modules/assemblyscript/bin/asc"
Globals path: "/Users/kevinjones/projects/thegraph/bulbafloor/packages/subgraph/node_modules/@graphprotocol/graph-ts/global/global.ts"
Libs folder: "/Users/kevinjones/projects/thegraph/bulbafloor/packages/subgraph/node_modules"', src/compiler/mod.rs:131:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduction

graph test

Steps to Reproduce the Bug or Issue

  1. git clone https://github.com/gnosisguild/bulbafloor.git
  2. cd bulbafloor
  3. pnpm install
  4. cd packages/subgraph
  5. graph test

Expected behavior

It would be nice to catch this error and display the required version for graph-ts

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS]
  • NodeJS: [e.g. v18.17.1]

Subgraph Manifest

NA

Subgraph GraphQL Schema

NA

Additional context

NA

kmjones1979 avatar Jan 11 '24 16:01 kmjones1979

A response from Maks on this was posted here in Discord for reference: https://discord.com/channels/438038660412342282/869962833528512543/1194736455793254522

kmjones1979 avatar Jan 11 '24 16:01 kmjones1979