Comments (4)
What is the timeline for a beta/preview release of v2?
No timeline yet. I'll try to add functions/tests/filters soon so people can try with some real templates but can't say when I will have time
from tera.
That's coming in v2! Have a look at an error: https://github.com/Keats/tera2/blob/master/src/tests/snapshots/tera__tests__rendering__rendering_errors%40unknown_var.html.snap.
Can VSCode read that file/line/col format? I can change it
from tera.
Great news! thank you!
What is the timeline for a beta/preview release of v2?
re: the format: VS Code matchers are just regex with capture groups. So, I think we have two options here:
- Have an output format that is really easy to parse, for example, all the above values joined by a common separator (
:
):
// A problem matcher definition in VS Code:
{
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
// foo/bar.jinja2:10:1:10:22:error:Failed to parse this expression.’
"regexp": "^([^:]+):([^:]+):([^:]+):([^:]+):([^:]+):([^:]+):(.+)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7,
}
}
- Or the more configurable/extensible option, exposing these properties on the error types returned, and the user can format/print it however they think is useful. So that Tera doesn't need to be forced to support a specific format, or worry about breaking it in the future.
from tera.
Thank you for your efforts!
from tera.
Related Issues (20)
- [FEATURE REQUEST] Support comparison operators for strings HOT 3
- Is there a function similar to minijinja's render_block? HOT 3
- Escaping is not applied at the expected level HOT 5
- Ability to build an object or hashmap? HOT 8
- error while importing HOT 2
- error while importing HOT 1
- Filter sections but set the result in a variable HOT 1
- Excessive memory usage of Tera HOT 3
- linebreaksbr is not safe - add `html_encode` filter? HOT 1
- `default` filter: make the `value` optionnal and add `d` alias HOT 1
- Use of `(` and `)` to specify order of operations. HOT 2
- Weird behavior with duplicate variable names HOT 1
- Removing space between HTML tags HOT 1
- Macro names can have underscores but not hyphens HOT 1
- Macro from another macro HOT 1
- More complete Display implementation for Error HOT 5
- Missing a few git tags? HOT 1
- [Question] Help understanding the `indent` built-in
- How to use in the template has . variables
- Round a number with precision not work as expected! HOT 2
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 tera.