Giter Club home page Giter Club logo

Comments (10)

bkiers avatar bkiers commented on June 16, 2024 1

@brettcooper ah yes, I already had some code on my local branch to handle runtime errors for filters which I forgot to commit & push. I just did, and will be in the next release. Thanks.

from liqp.

bkiers avatar bkiers commented on June 16, 2024

Yeah, error reporting and source locations where things went wrong are lacking. When I have some more spare time, I'll definitely have a look at this.

from liqp.

fodon avatar fodon commented on June 16, 2024

I second this. I parse a functioning liquid file and all I get in the error message is
java.lang.RuntimeException: MismatchedTokenException(57!=91)
Any clue how one would begin to debug this?

from liqp.

bkiers avatar bkiers commented on June 16, 2024

The numbers refer to ANTLR's token types. MismatchedTokenException(57!=91) means that ANTLR encountered a token with type 57, while the parser expected the token with type 91. These token types are defined inside the generated LiquidLexer.

from liqp.

jajcek avatar jajcek commented on June 16, 2024

Are there any plans to introduce this in the near future? Something like strict_variables and some info how to identify which one has failed (to be able to find this in the template)?

from liqp.

bkiers avatar bkiers commented on June 16, 2024

Not in the near future. I do welcome PR's, of course :)

from liqp.

blinksoft avatar blinksoft commented on June 16, 2024

If there is someone interested in doing this as a paid engagement, please PM me. We are trying to figure out if we want to do the work or outsource it, as this would help our support team identify issues easier.

from liqp.

bkiers avatar bkiers commented on June 16, 2024

Here's a way you could go about providing better error messages: #56

For the time being, I'll leave that PR open for some feedback. Feel free to build upon that branch and submit a PR of your own.

HTH

from liqp.

brettcooper avatar brettcooper commented on June 16, 2024

Any progress or update on this issue? We are also facing the issue of cryptic Liquid error messages that are difficult to understand or troubleshoot. Better exception messaging would be greatly appreciated!

from liqp.

brettcooper avatar brettcooper commented on June 16, 2024

Woohoo @bkiers! Thanks! We look forward to trying the new exception handling.

from liqp.

Related Issues (20)

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.