Graviton-Code-Editor / Graviton-App

🚀 A modern-looking Code Editor
https://graviton.netlify.app
MIT License
1.16k stars 126 forks source link

[Issue] cargo install tauri-cli error #299

Closed mtvbrianking closed 2 years ago

mtvbrianking commented 2 years ago

Hello,

I'm stuck with the following error(s)

bmatovu@home-pc:graviton$ cargo install tauri-cli --version ^1.0.0-beta
    Updating crates.io index
  Installing tauri-cli v1.0.0-beta.7
  .
  .
  .
   Compiling tauri-cli v1.0.0-beta.7
error[E0432]: unresolved import `clap::crate_version`
 --> /home/bmatovu/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:6:12
  |
6 | use clap::{crate_version, load_yaml, App, AppSettings, ArgMatches};
  |            ^^^^^^^^^^^^^ no `crate_version` in the root

error: cannot determine resolution for the macro `crate_version`
   --> /home/bmatovu/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:265:14
    |
265 |     .version(crate_version!())
    |              ^^^^^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error[E0308]: mismatched types
   --> /home/bmatovu/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:264:23
    |
264 |   let app = App::from(yaml)
    |                       ^^^^ expected struct `App`, found `&yaml_rust::yaml::Yaml`

Some errors have detailed explanations: E0308, E0432.
For more information about an error, try `rustc --explain E0308`.
error: failed to compile `tauri-cli v1.0.0-beta.7`, intermediate artifacts can be found at `/tmp/cargo-installsXqrl8`

Caused by:
  could not compile `tauri-cli` due to 3 previous errors
marc2332 commented 2 years ago

Hello Brian,

That's weird, could you please open the same issue in https://github.com/tauri-apps/tauri/issues ? I am sure they will know how to help you. I am gonna leave this open meanwhile.

:D

mtvbrianking commented 2 years ago

Hello @marc2332

I've open https://github.com/tauri-apps/tauri/issues/3050 for the same.