LimeChain / matchstick

🔥 Unit testing framework for Subgraph development on The Graph protocol. ⚙️
MIT License
210 stars 18 forks source link

Internal error during compilation: %1 is not a valid Win32 application. (os error 193) #271

Closed darkspring1 closed 2 years ago

darkspring1 commented 2 years ago

image

darkspring1 commented 2 years ago

I try to run tests from demo project (https://github.com/LimeChain/demo-subgraph) and catch error (See screenshot above) OS: windows 11 My package.json content: { "name": "demo", "version": "0.1.0", "repository": "https://github.com/LimeChain/demo-subgraph", "license": "MIT", "scripts": { "codegen": "graph codegen", "build": "graph build", "create-local": "graph create demo --node http://127.0.0.1:8020", "deploy-local": "graph deploy demo --ipfs http://localhost:5001 --node http://127.0.0.1:8020", "test": "graph test gravity", "coverage": "graph test -- -c" }, "dependencies": { "@graphprotocol/graph-cli": "^0.25.1", "@graphprotocol/graph-ts": "^0.24.1", "matchstick-as": "^0.2.3" } }

dimitrovmaksim commented 2 years ago

Could you try downloading binary-windows from the releseas to the demo-subgraph folder, add the .exe extension to the name and run ./binary-windows.exe and see if it executes successfully

darkspring1 commented 2 years ago

I tried run binary-windows from v0.2.3 release but I see the same error image

dimitrovmaksim commented 2 years ago

Thank you! You could use the docker solution described here https://github.com/LimeChain/matchstick#docker- while we investigate the issue

dimitrovmaksim commented 2 years ago

After some considerations we decided to drop support for the windows binary for now. Meanwhile you can use the docker solution mentioned in the previous comment. I will close this Issue for now.