[Windows][Powershell7] cannot find type `PathBuf` in this scope
searleser97 opened this issue · 3 comments
searleser97 commented
lib.rs
use nvim_oxi as oxi;
#[oxi::module]
fn foo() -> oxi::Result<i32> {
Ok(42)
}
Cargo.toml
[package]
name = "lua_utils"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
nvim-oxi = { version = "0.3", features = ["neovim-nightly"] }
Rust versions
cargo 1.76.0-nightly (978722961 2023-12-06)
rustc 1.76.0-nightly (1fdfe1234 2023-12-06)
noib3 commented
I think you're using an older commit, this is fixed on main. Try doing a cargo update nvim-oxi
.
searleser97 commented
I ran that command but the error still persists, don't I need to update the version number or something ?
noib3 commented
My bad, you're right. That issue is indeed fixed on main but I haven't done a release in a while. I plan to do a minor one this weekend, in the meantime you can use nvim-oxi = { git = "https://github.com/noib3/nvim-oxi", .. }
in your Cargo.toml
.