Skip to content

Compilation Error in tauri-plugin-process v2.2.1 — Possibly Related to #2545 #2637

@antoinedelplace

Description

@antoinedelplace

I'm encountering a compilation error when trying to use tauri-plugin-process v2.2.1. It seems that the AppHandle struct does not implement the request_restart method as expected.

This may be related to the recent changes from #2545.

Error Output:

Compiling tauri-plugin-process v2.2.1
error[E0599]: no method named `request_restart` found for struct `AppHandle` in the current scope
  --> ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-plugin-process-2.2.1\src\commands.rs:14:9
   |
14 |     app.request_restart()
   |         ^^^^^^^^^^^^^^^ method not found in `AppHandle<R>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `tauri-plugin-process` (lib) due to 1 previous error

Environment:

  • Tauri: v2.2.4
  • Plugin: tauri-plugin-process v2.2.1
  • Rust: v1.77.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions