MathiasPius / lapce-crates

Apache License 2.0
1 stars 0 forks source link

version of crates-lsp is not match #2

Closed jm-observer closed 9 months ago

jm-observer commented 9 months ago

hello, when i install crates plugin(0.0.4), but i found the crates-lsp is 0.0.2, some logs:

2024-01-04T13:04:26.882254Z DEBUG lapce_proxy::plugin::wasi: start_volt:  VoltMetadata { name: "lapce-crates", version: "0.0.4", display_name: "Crates", author: "MathiasPius", description: "Crates.io integration for Cargo.toml", icon: Some("logo.png"), repository: Some("https://github.com/MathiasPius/lapce-crates"), wasm: Some("\\\\?\\C:\\Users\\36225\\AppData\\Local\\lapce\\Lapce-Debug\\data\\plugins\\MathiasPius.lapce-crates\\bin\\lapce-crates.wasm"), color_themes: None, icon_themes: None, dir: Some("\\\\?\\C:\\Users\\36225\\AppData\\Local\\lapce\\Lapce-Debug\\data\\plugins\\MathiasPius.lapce-crates"), activation: Some(VoltActivation { language: Some(["rust"]), workspace_contains: Some(["**/Cargo.toml"]) }), config: Some({"lsp.useApi": VoltConfig { default: Bool(false), description: "Use the crates.io API directly instead of the sparse index at https://index.crates.io\n\nUsing the API is highly discouraged as it puts unnecessary strain on the crates.io infrastructure, and provides no benefit over the sparse index." }, "lsp.serverPath": VoltConfig { default: String(""), description: "Version of crates-lsp to use, or path to local crates-lsp binary. Defaults to 'latest'." }}) }

2024-01-04T12:56:42.859488Z DEBUG lapce_proxy::plugin::wasi: JsonRpc send to host: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"latest crates-lsp version: 0.0.2","type":3}}
MathiasPius commented 9 months ago

Thanks for the report!

It looks like I might not have rebuilt the lapce-crates wasm binary correctly before releasing version 0.0.4, so it still uses the old code, and therefore points to 0.0.2.

I've re-released 0.0.4 (just in case) and pushed a 0.0.5, both with the correct (0.0.4) crates-lsp version :)