karlwessel / begyourpardon Goto Github PK
View Code? Open in Web Editor NEWTools to improve readability of Julia errors and backtraces
Tools to improve readability of Julia errors and backtraces
Using the module after a fresh installation fails because the ticket directory does not exists. Easiest solution to solve this is by just creating the directory in that case.
In method shownew
of stacktrace.jl
there is a space missing between "in file x in pkg".
The basics are already implemented in src/collapsetypes.jl but need finish (see other ticket) and especially inclusion in module.
Currently in the stack trace displayed by shownew
in stacktraces.jl
the line of the stack trace is displayed like
which in line 118 in file REPL.jl in package REPL
a better Version would only emphasize the line, file and package itself:
which in line 118 in file REPL.jl in package REPL
Since there are different scenarios where different styles on how to display errors are better or worse (e.g. first time user vs. long time user) a style based dispatch on showing errors sound practicable.
The methods for showing error messages and stack traces would take a first style argument that decided how they are printed.
For example a style that would print verbose explanation of the stack trace and another that shows a very condensed stack trace.
There could be a default or fallback style that uses the Base methods to show errors.
The Styles should be only used internally for now, the end user would only use different methods to display the errors in different styles (for now).
For some reason the newline is ignored when the line
For more information on this error see 'help(ticker)'
is displayed so that it is printed in the same line as the last stack trace line.
Find a way to detect the currently active package/environment from Pkg
and highlight the lines in the stack trace that happened in that package.
Currently collapsetypes.jl
overrides Base methods to support display of collapsed long nested types. Find a way to do that without overriding.
For example by not calling Base.showerror
for tickets but calling method to print error and stacktrace ourself
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.