Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows][Powershell7] cannot find type PathBuf in this scope #119

Closed
searleser97 opened this issue Dec 7, 2023 · 3 comments
Closed

[Windows][Powershell7] cannot find type PathBuf in this scope #119

searleser97 opened this issue Dec 7, 2023 · 3 comments

Comments

@searleser97
Copy link

searleser97 commented Dec 7, 2023

image

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
Copy link
Owner

noib3 commented Dec 7, 2023

I think you're using an older commit, this is fixed on main. Try doing a cargo update nvim-oxi.

@searleser97
Copy link
Author

searleser97 commented Dec 7, 2023

I ran that command but the error still persists, don't I need to update the version number or something ?

@noib3
Copy link
Owner

noib3 commented Dec 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants