Giter VIP home page Giter VIP logo

better-ts-errors's Introduction

Hey! ๐Ÿ‘‹

I'm Julio Cesar.

Passionate about problem solving and learning new tech. I work mainly with TypeScript, React and Node.js.

LinkedIn Gitlab Codewars

better-ts-errors's People

Contributors

jliocsar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

better-ts-errors's Issues

Improve TS error message parsing

Currently the better-ts-error extension works just great with simple error messages.

In the case of a more complex error message, it'll break and show errors parsed incorrectly.

For example, consider the following error message:

Error: Type 'Record<'x', { y: Partial<PatientRecord> & { z: string; }; }>' is not assignable to type 'Record<'x', { y: PatientRecord & { z: string; }; }>'. The 'y' field in the provided object is missing some required properties of 'PatientRecord'."

The parsing of this message will currently break, as it includes single quotes within the error message itself.

This is the part of the parser where we split/match the snippets within the error message.
It's what'd have to be improved, but I don't know how.

Any help is welcome here. Thank you for using better-ts-errors!

support for js extensions

I use TS via jsdoc on a lot of js codebases. Would be cool to have this extension work with those as well!

UI hanging with ESLint and other plugins

Apparently ESLint and other plugins currently make the UI hang eternally (and eventually causes a memory leak).

I'm assuming ESLint produces more diagnostics, which are somehow silently failing in the extension (perhaps in the regex match).

Anyhow, this has to be fixed ASAP.
The strings' regexes also need to be escaped, as it seems to be breaking some error messages too.

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.