Description
mismatch in the crate's version and the version shown in feature popup.
Neovim version
v0.11.3
Health check
Operating system and version
macOS 15.5
Expected behavior
require("crates").show_features_popup() should be of the same version as the crate's version.
in the latest version of the crate tauri-specta, require("crates").show_versions_popup() would show 1 more feature - derive.
Actual behavior
i have specified my crate's version to be of 2.0.0-rc.21.
but the features available are of an older version - 2.0.0-rc.9,
which is not the version that i specified.
not sure if it could be because the version is sorted in a lexicographical order.
Minimal config
-- comment out, and add the things that are _necessary_ for reproducing the ISSUE
for name, url in pairs({
crates = "https://github.com/saecki/crates.nvim",
-- cmp = "https://github.com/hrsh7th/nvim-cmp",
-- coq = "https://github.com/ms-jpq/coq_nvim",
-- null_ls = "https://github.com/jose-elias-alvarez/null-ls.nvim",
}) do
local install_path = vim.fn.fnamemodify("crates_issue/" .. name, ":p")
if vim.fn.isdirectory(install_path) == 0 then
vim.notify("cloning " .. url .. " into " .. install_path)
vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
end
vim.opt.runtimepath:append(install_path)
end
require("crates").setup({
popup = {
autofocus = true,
border = "rounded",
},
completion = {
crates = {
enabled = true,
},
},
lsp = {
enabled = true,
actions = true,
completion = true,
hover = true,
}
})
-- require("cmp").setup({
-- sources = { { name = "crates" } },
-- })
-- require("null-ls").setup({
-- on_attach = function(client, buf)
-- vim.keymap.set("n", "<space>a", vim.lsp.buf.code_action, { buffer = buf })
-- end,
-- })
Cargo.toml
[package]
name = "hello"
version = "0.1.0"
edition = "2024"
[dependencies]
tauri-specta = { version = "2.0.0-rc.21", features = ["typescript"] }
Steps to reproduce
nvim --clean -u minimal.lua
- ...
Description
mismatch in the crate's version and the version shown in feature popup.
Neovim version
v0.11.3
Health check
Operating system and version
macOS 15.5
Expected behavior
require("crates").show_features_popup()should be of the same version as the crate's version.in the latest version of the crate tauri-specta,
require("crates").show_versions_popup()would show 1 more feature -derive.Actual behavior
i have specified my crate's version to be of
2.0.0-rc.21.but the features available are of an older version -
2.0.0-rc.9,which is not the version that i specified.
not sure if it could be because the version is sorted in a lexicographical order.
Minimal config
Cargo.toml
Steps to reproduce
nvim --clean -u minimal.lua