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

[BUG] [da893a988395c] Chat Compilation error #150

Open
hotung1027 opened this issue Feb 22, 2024 · 0 comments
Open

[BUG] [da893a988395c] Chat Compilation error #150

hotung1027 opened this issue Feb 22, 2024 · 0 comments

Comments

@hotung1027
Copy link

hotung1027 commented Feb 22, 2024

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:

  • OS Macos arm64 apple silicon:
  • Cargo version 1.60.0
  • rustup version
❯ rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.74.1 (a28077b28 2023-12-04)`

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"
@hotung1027 hotung1027 changed the title [BUG] [da893a988395c] Compilation error [BUG] [da893a988395c] Chat Compilation error Feb 22, 2024
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

1 participant