Comments (3)
@tomtau thanks for the issue report
We are currently using apalache CLI to communicate - which lacks a standard parsing format. So, we may have missed some error cases in the parser. When apalache-chai is integrated, atomkraft will use its proper API to communicate success and errors.
Duplicate of informalsystems/modelator#297
PS. I started the process to add you to our slack channel
from atomkraft.
Hi @tomtau ! Agree that the error message is not really helpful -> it will be addressed once this issue is resolved.
In the meantime, probably the best way to get better error messages is by using Apalache directly.
By running atomkraft model apalache info
you will get the info on where it is on your system, and then you can run apalache parse models/nft.tla
and apalache typecheck models/nft.tla
(after adding the path of the folder containing apalache to your PATH variable).
In the concrete case, I believe the problem is at the line \E token \in denom[token]:
: token
is just introduced by the quantifir so it's not clear what denom[token]
is. What did you try to achieve there?
from atomkraft.
@ivan-gavran thanks, running Apalache directly indeed produces more helpful error messages! the issue was with View ==
where it should have been:
View ==
VariantGetOrElse(
"TransferNft",
...
for the denom, I rewrote it as:
\E denom \in DENOMS:
\E token \in balances[sender][denom]:
It seems to load fine now. Should I keep this issue open (for unhelpful parsing error messages), or close it as it's subsumed by informalsystems/modelator#297 ? And for any further Atomkraft/Apalache questions, shall I open issues here or is there a better venue for it (e.g. Cephalopod Discord)?
from atomkraft.
Related Issues (20)
- Adopt async runtime
- Failed GRPC connections with reduced block time
- Populate `.github` directory with useful templates and standard practices
- Installation instruction for pip are missing HOT 1
- Stuck at broadcasting when transaction fails
- Atomkraft with provenance binary (help needed) HOT 9
- MDX tests are failing non-deterministically on macOS runner HOT 2
- Upon starting testnet from Atomkraft " unsupported hash type ripemd160" error is received HOT 1
- Update existing .tla examples to follow the changes in the Apalache typesystem
- Support for custom modules in Atomkraft HOT 1
- vscode plugins question HOT 1
- Fix report directory
- Improve location of test files for `test` command
- Improving CONTRIBUTING.md
- can't run `atomkraft` without `.atomkraft` directory HOT 4
- `atomkraft init` should generate a `.gitignore` file
- `atomkraft init` should generate a hello world project instead of an empty one
- Atomkraft gives Parsing error when apalache not installed HOT 1
- Bech32 address derivation failing on Ethermint chains
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atomkraft.