Comments (4)
Hello, thank you for opening the issue. The reason behind the bug is that the standalone stencil runner uses its own JSON parser implementation. (The bug is not present when stencil is used as the service or as a library.) Apparently, it is far from perfect.
I have released version v0.3.27
with the fix for the issue.
from stencil.
I checked the error logs,
for the payload
{
"test": -3
}
the error trace is
Exception in thread "main" java.lang.IllegalStateException: Unexpected character: '-'
at io.github.erdos.stencil.standalone.JsonParser.simpleParse(JsonParser.java:64)
at io.github.erdos.stencil.standalone.JsonParser.readMap(JsonParser.java:160)
at io.github.erdos.stencil.standalone.JsonParser.simpleParse(JsonParser.java:47)
at io.github.erdos.stencil.standalone.JsonParser.read(JsonParser.java:24)
at io.github.erdos.stencil.standalone.JsonParser.parse(JsonParser.java:20)
at io.github.erdos.stencil.standalone.Parser$DataFileFormat$1.parse(Parser.java:37)
at io.github.erdos.stencil.standalone.StandaloneApplication.processJobs(StandaloneApplication.java:89)
at io.github.erdos.stencil.standalone.StandaloneApplication.run(StandaloneApplication.java:70)
at io.github.erdos.stencil.Main.main(Main.java:20)
from stencil.
🤦
from stencil.
Awesome, thank you 💚
from stencil.
Related Issues (20)
- Round float decimal places in Template HOT 4
- Refreshing Table of Contents after document generation HOT 6
- Can't subtract from result of coalesce expression HOT 2
- Newline character support HOT 4
- Calculating a range between dates HOT 3
- add functions to service on-the-fly HOT 2
- Scaling stencil: support fetching templates from an object storage
- Define local variables in the Tempalte HOT 2
- `map` function doesn't work HOT 2
- Dividing by dynamic value doesn't work HOT 2
- Page breaks HOT 8
- function to insert page break
- Loop over collection with an index HOT 1
- Formatting for integer division breaks in some cases HOT 2
- Sum/Map with conditions HOT 1
- Add support for replaceAll HOT 2
- For loops cause issue with numbered bullet points HOT 5
- Is there a chance for more meaningful errors in Stencil being implemented? HOT 10
- Getting stackoverflow exception during parsing of template regarding whitespace parsing HOT 5
- Allow to set working directory to overwrite usage of system property java.io.tmpdir HOT 4
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 stencil.