I'm Julio Cesar.
Passionate about problem solving and learning new tech. I work mainly with TypeScript, React and Node.js.
A parser and formatter for visualizing a simplified version of TS errors.
Home Page: https://better-ts-errors.vercel.app
License: MIT License
Performance
better-ts-errors
1.7.7
Darwin arm64 22.5.0
1.81.1
file:///var/folders/wj/r6w3fz4d27sb_9h417chvttw0000gn/T/better-ts-errors.better-ts-errors-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
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
!
I use TS via jsdoc on a lot of js codebases. Would be cool to have this extension work with those as well!
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.
Version 1.7.7 of the software causes the editor to freeze.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.