Comments (10)
@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.
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.
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.
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.
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.
Not in the near future. I do welcome PR's, of course :)
from liqp.
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.
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.
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.
Woohoo @bkiers! Thanks! We look forward to trying the new exception handling.
from liqp.
Related Issues (20)
- Included template must be parsed/rendered with the same parse/rendering settins
- Future of @deprecated methods HOT 7
- How to convert to a JSON String HOT 4
- Upgrade ANTLR HOT 11
- Template errors not being stored when using liquid for loops HOT 2
- Support for Liquid's Layouts HOT 3
- Integer and Float Comparisons After Using Times Filter HOT 15
- How to modify default renderer HOT 1
- Shaded jar should exclude non-ANTLR dependencies HOT 2
- Support for `liquid` tag HOT 1
- expression errors ignored in _some_ cases HOT 1
- Template parse is deprecated HOT 3
- Issues with the new release. HOT 2
- != working as == HOT 2
- Is Template (render) thread safe? HOT 2
- when text contains UNICODE characters the parsing fails HOT 1
- Parser error "Invalid Tag: 'liquid'" HOT 2
- Support Instant datetime pattern
- Support for Instant, LocalDateTime date pattern HOT 1
- BlockNode Map render issue: String.valueOf(Map<?,?>) returns '=' instead of ':' as delimiter HOT 12
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 liqp.