Git Product home page Git Product logo

Comments (1)

mbellotti avatar mbellotti commented on June 11, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.