Giter Club home page Giter Club logo

Comments (4)

Keats avatar Keats commented on June 27, 2024 1

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.

Keats avatar Keats commented on June 27, 2024

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.

OmarTawfik avatar OmarTawfik commented on June 27, 2024

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:

  1. 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,
  }
}
  1. 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.

OmarTawfik avatar OmarTawfik commented on June 27, 2024

Thank you for your efforts!

from tera.

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.