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] tauri-cli fails to build #9050

Closed
Wyti opened this issue Mar 1, 2024 · 1 comment
Closed

[bug] tauri-cli fails to build #9050

Wyti opened this issue Mar 1, 2024 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Wyti
Copy link

Wyti commented Mar 1, 2024

Describe the bug

tauri cli fails to build. Affect both latest v2.0.0-beta.6 and 1.5.10

Probable cause: rust-lang/log#592
part of log v0.4.21 released 2 days ago. Timing does coincide with my latest successful build of tauri-cli v2.0.0-beta.5 as well as corroborate the compiler error.

Reproduction

run: cargo install tauri-cli
from a clean cache (deleted my .cargo/registry)

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 122.0.2365.59
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.77.0-beta.5 (f2043422f 2024-02-17)
    ✔ cargo: 1.77.0-beta.5 (837c09f04 2024-02-16)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: beta-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.1
    - npm: 10.2.4

[-] Packages
    - tauri-cli [RUST]: 2.0.0-beta.5
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.6

[-] App

Stack trace

Compiler error:

error[E0599]: no method named `to_str` found for struct `log::kv::Value` in the current scope
   --> C:\Users\Wyti\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-cli-1.5.10\src\lib.rs:132:29
    |
132 |         let action = action.to_str().unwrap();
    |                             ^^^^^^ help: there is a method with a similar name: `to_cow_str`

Additional context

No response

@Wyti Wyti added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 1, 2024
@amrbashir
Copy link
Member

fixed in #9034 and will be released soon, for now install using --locked command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants