Comments (1)
Oh this is great. Exactly the sort of stuff I was hoping for!
Here's the problem. The sandwich example is a spec. Spec files need to have the extension .fspec
It gives you that error because you named it .fsystem
but then declared it a spec file.
I'm actually surprised it got as far into the parser as it did. I would have expected Antlr to pick it up much earlier with a prettier and cleaner error message. So I added some validation language to check that the declaration matches the file type and deliver a friendlier error message.
When you change the declaration to system it loads the grammar for system files but doesn't find anything to parse as there is no state chart. As a result it sends a mostly empty and meaningless AST through. It appears to work, but there's no model to run so it just fails silently. Added some validation to check for these scenarios as well.
While doing this I found ANOTHER edge case myself around running individual spec files that do not have run blocks (because they were designed to be imported). Added some additional checks to short-circuit the compiling and allow the compiler to exit successfully but with the explanation that there is actually no model to run.
Thanks so much for reporting this... please accept this facepalming kitten as a token of gratitude 😀
from fault.
Related Issues (7)
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 fault.