All Projects → JuliaLang → FancyDiagnostics.jl

JuliaLang / FancyDiagnostics.jl

Licence: other
Better parser errors for Julia

Programming Languages

julia
2034 projects

FancyDiagnostics - Enhance your Julia error message experience

FancyDiagnostics replaces the standard julia parsing mechanics and substitues in CSTParser. CSTParser provides a richer set of diagnostics than the base julia parser. This package allows you to take advantage of that in the REPL. Please note however, that CSTParser does not currently have the same level of maturity as the base parser. Please file an issue on CSTParser if you encounter a syntax construct that gets parsed incorrectly after loading this package.

Usage

After installing the package, simply place

using FancyDiagnostics

in your .juliarc.jl.

Example

Before:

julia> a && && b
ERROR: syntax: invalid identifier name "&&"

After:

julia> a && && b
REPL[1]:1:6 ERROR: Unexpected operator
a && && c
     ^~~
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].