Closed Openuser87 closed 3 months ago
Thanks for reporting. This is an issue with the dependency ariadne
that I just reported (https://github.com/zesterer/ariadne/issues/116). Until it's solved or a new version is released you can install chef
with cargo install cooklang-chef --locked
.
For library users, patch the ariadne
version to "=0.4.0"
until this is solved by, for example, adding it as a dependency even if you don't use it.
Hello, it's been a few months but the ariadne
crate is still inactive.
It seems like this other user switched to a different crate, https://github.com/01mf02/jaq/pull/185
https://crates.io/crates/codesnake
Codesnake is pretty explicitly meant as a rewrite of Ariadne.
Perhaps I can work on the switch to codesnake?
Hi, I have also been following the issue and considered codesnake
. I started porting the code and it's pretty much done. But I realised that some features were missing or had limitations.
As the codesnake
description says Pretty printer for non-overlapping code spans
non-overlapping and we have a couple of overlapping code spans. This should be easy to solve but requires manually checking every possible error span created by the compiler.
It does not support "empty labels" which we use quite often. This is highlighting a piece of code without adding an arrow with a message. (Like the one in the image, the arrow should not be there)
I have opened an issue in codesnake
(https://github.com/01mf02/codesnake/issues/2) to see if the creator wants the empty labels feature. Also, my work with codesnake is in the new codesnake
branch of this repo.
Fixed in 0.13.3 😄
Following error occurs upon using
cargo install cooklang-chef
:Versions: cargo 1.77.2, rustc 1.77.2.