codespan
codespan copied to clipboard
Beautiful diagnostic reporting for text-based programming languages.
Hi, [databend](https://github.com/datafuselabs/databend) (A cloud data warehouse written in Rust) depends on `codespan-reporting` to display SQL errors. We need to use the feature https://github.com/brendanzab/codespan/pull/331, so we have to pin our `Cargo.toml`...
Several functions could be marked as `const`, including `Files::new()`, which would let it be used as a `static` item without resorting to tricks like `lazy_static`.
Attempts to address #293 by extending each note with an optional list of labels: ``` error: cycle detected when evaluating constant `A` ┌─ one_line.rs:1:1 │ 1 │ const A: u32...
It seems that, in 2019, in , , and , there was some interest in merging `codespan` into @rust-lang's `annotate-snippets`, but those conversations have lain open without new comments for...
Updates the requirements on [lsp-types](https://github.com/gluon-lang/lsp-types) to permit the latest version. Changelog Sourced from lsp-types's changelog. v0.93.0 (2022-04-08) Features helperTypes: implement new JSON types (bd9bb2e7) v0.92.1 (2022-03-21) Bug Fixes inlayHint: typo...
Updates the requirements on [peg](https://github.com/kevinmehall/rust-peg) to permit the latest version. Release notes Sourced from peg's releases. 0.8.0 New Features #[cache_left_rec] annotation to allow left recursion (#266) Return matched token/character from...
It's unnecessary to require allocated vectors instead of just any iterator. With this change, you can use `with_labels_iter` and `with_notes_iter` in the example code (and in other code) with arrays...
I searched, but I couldn't find anything. I think the main functionality of this library that is getting diagnostics and printing them to the terminal, should be C-bindable.
This moves the locus calculation from `RichDiagnostic::render` to `Diagnostic::locuses`. Some questions to answer: - [ ] **Is the implementation impact acceptable?** The way I implemented this has some impacts on...
This should resolve #261. Is this just okay like this, or should this be configurable?