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] could not compile tauri #9728

Closed
cooldanya opened this issue May 9, 2024 · 5 comments
Closed

[bug] could not compile tauri #9728

cooldanya opened this issue May 9, 2024 · 5 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@cooldanya
Copy link

Describe the bug

i can't compile tauri, i think it's related to the latest release

commit 7f885bd

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 124.0.2478.80
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.12.2
    - pnpm: 8.15.1
    - yarn: 1.22.19
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 1.6.4
    - tauri-build [RUST]: 1.5.2
    - wry [RUST]: 0.24.9
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.5.5
    - @tauri-apps/cli [NPM]: 1.5.13

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

Compiling tauri v1.6.4
error[E0412]: cannot find type `Command` in module `crate::api::process`
   --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-1.6.4\src\endpoints\shell.rs:230:41
    |
230 | ) -> super::Result<crate::api::process::Command> {
    |                                         ^^^^^^^ not found in `crate::api::process`
    |
help: consider importing this struct
    |
7   + use std::process::Command;
    |
help: if you import `Command`, refer to it directly
    |
230 - ) -> super::Result<crate::api::process::Command> {
230 + ) -> super::Result<Command> {
    |

   --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-1.6.4\src\endpoints\shell.rs:290:50
    |
290 |     if let Some(encoding) = crate::api::process::Encoding::for_label(encoding.as_bytes()) {
    |                                                  ^^^^^^^^ could not find `Encoding` in `process`
    |
help: consider importing this struct
    |
    |
help: if you import `Encoding`, refer to it directly
    |
290 -     if let Some(encoding) = crate::api::process::Encoding::for_label(encoding.as_bytes()) {
290 +     if let Some(encoding) = Encoding::for_label(encoding.as_bytes()) {
    |

Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `tauri` (lib) due to 2 previous errors

Additional context

No response

@cooldanya cooldanya added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 9, 2024
@amrbashir
Copy link
Member

Can you try running cargo update inside src-tauri? if still doesn't work then share a repro please?

@eugritz
Copy link

eugritz commented May 9, 2024

Same happens to me. It started approximately 1-2 hours ago, when tauri 1.6.4 released. It can be easily reproduced with create-tauri-app CLI

@cooldanya
Copy link
Author

cooldanya commented May 9, 2024

Can you try running cargo update inside src-tauri? if still doesn't work then share a repro please?

this is a clean installation, just run npm create tauri-app@latest and follow the instructions

@amrbashir
Copy link
Member

thanks, for some reason I wasn't able to reproduce with my local tauri version, gonna look into it and release a fix ASAP

@amrbashir
Copy link
Member

a fix is released, run cargo update -p tauri inside src-tauri directory

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

3 participants