codota / tabnine-nvim

Tabnine Client for Neovim
https://tabnine.com
342 stars 31 forks source link

[BUG] [da893a988395c] Chat Compilation error #150

Open hotung1027 opened 7 months ago

hotung1027 commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

  Updating crates.io index
  Downloaded url v2.5.0
  Downloaded percent-encoding v2.3.1
  Downloaded form_urlencoded v1.2.1
  Downloaded unicode-bidi v0.3.15
  Downloaded unicode-normalization v0.1.23
  Downloaded idna v0.5.0
  Downloaded 6 crates (549.2 KB) in 0.51s
   Compiling percent-encoding v2.3.1
   Compiling unicode-bidi v0.3.15
   Compiling unicode-normalization v0.1.23
   Compiling jpeg-decoder v0.3.0
error[E0786]: found invalid metadata files for crate `rayon`
  --> /Users/randyt/.cargo/registry/src/github.com-1ecc6299db9ec823/jpeg-decoder-0.3.0/src/lib.rs:37:1
   |
37 | extern crate rayon;
   | ^^^^^^^^^^^^^^^^^^^
   |
   = note: invalid metadata version found: /Users/randyt/.local/share/nvim/lazy/tabnine-nvim/chat/target/debug/deps/librayon-c1fb2c484de5d2d1.rmeta

   Compiling form_urlencoded v1.2.1
error[E0599]: no method named `par_chunks_mut` found for struct `Vec<u8>` in the current scope
   --> /Users/randyt/.cargo/registry/src/github.com-1ecc6299db9ec823/jpeg-decoder-0.3.0/src/worker/rayon.rs:207:10
    |
207 |         .par_chunks_mut(line_size)
    |          ^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `as_chunks_mut`

Some errors have detailed explanations: E0599, E0786.
For more information about an error, try `rustc --explain E0599`.
error: could not compile `jpeg-decoder` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

To Reproduce Steps to reproduce the behavior:

  1. cargo build --release with Cargo.toml dependencies below
    image = "0.24.6"
    once_cell = "1.18.0"
    regex = "1.8.4"
    serde = { version = "1.0.164", features = ["derive"] }
    serde_json = "1.0.99"
    wry = "0.29.0"

Expected behavior compile succesfully

Version Info:

Additional context build succesfully after changed the dependency

[dependencies]
image = "0.24.6" --> "0.23.14"
once_cell = "1.18.0" --> "1.19.0"
regex = "1.8.4"--> "1.10.3"
serde = { version = "1.0.164", features = ["derive"] } --> { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.99" --> "1.0.114"
wry = "0.29.0"