extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Markdown (Vale)

Open koozz opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Language

Markdown

Tree Sitter parser link

No response

Language server link

https://github.com/errata-ai/vale-ls

Misc notes

Markdown is supported in Zed, but Vale brings spellchecking and style checking to your markdown through a language server (which is written in Rust).

Vale compiles into a fast, dependency-free binary for macOS, Windows, and Linux. Extensible Vale helps you maintain a consistent and on-brand voice by allowing you to create your own custom rules. Vale runs entirely offline—ensuring that your content is never sent to a remote server for processing.

Source: https://vale.sh/

koozz avatar Apr 15 '24 11:04 koozz

First attempt couldn't compile because the vale-ls is using Tokio, which doesn't compile to WASM.

Second attempt worked for a split second, I had the LSP error visible in Zed in my Markdown file, but after removing the Dev Extension and trying a clean Install Dev Extension the logs state:

2024-04-25T16:05:47+02:00 [INFO] compiling Rust extension /Users/jan/git/github.com/koozz/zed-vale
2024-04-25T16:05:47+02:00 [ERROR] crates/extensions_ui/src/extensions_ui.rs:66: failed to compile Rust extension

Caused by:
    0: failed to run rustc
    1: No such file or directory (os error 2)

I can successfully run cargo build --target=wasm32-wasi and also successfully execute ~/Library/Application\ Support/Zed/extensions/work/vale/vale-ls-v0.3.7/vale-ls. Also removing ~/Library/Application\ Support/Zed/extensions/work/vale didn't help.

Any idea why it doesn't want to compile from Zed anymore? Code is stored on koozz/zed-vale.

koozz avatar Apr 25 '24 14:04 koozz

It seems to compile, but after a single working check, the language server seems to crash.

koozz avatar May 06 '24 12:05 koozz