riipandi / tauri-tray-app

This project template should help get you started developing a multi-platform desktop application with tray menu using Tauri, Typescript, Tailwind CSS, and Vite.
Apache License 2.0
135 stars 8 forks source link

[Windows] no method named `hidden_title` #2

Open pluveto opened 2 months ago

pluveto commented 2 months ago

Reproduction

pnpm i
pnpm tauri dev

Error detail

error[E0599]: no method named `hidden_title` found for struct `WindowBuilder` in the current scope
  --> src-tauri\src\cmd\general.rs:77:10
   |
68 | /     child
69 | |         .inner_size(640.0, 560.0)
70 | |         .initialization_script(meta::JS_INIT_SCRIPT)
71 | |         .resizable(false)
...  |
76 | |         .decorations(true)
77 | |         .hidden_title(true)
   | |         -^^^^^^^^^^^^ method not found in `WindowBuilder<'_>`
   | |_________|

error[E0425]: cannot find function `build_tray_menu` in module `menu`
  --> src-tauri\src/main.rs:86:28
   |
86 |         .system_tray(menu::build_tray_menu())
   |                            ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `build_app_menu`
   |
  ::: src-tauri\src\menu\app_menu.rs:13:1
   |
13 | pub fn build_app_menu() -> tauri::Menu {
   | -------------------------------------- similarly named function `build_app_menu` defined here

error: invalid character `{` in package name: `tauri-plugin-{{name}}`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)
 --> ..\..\.cargo\git\checkouts\plugins-workspace-fd0259fcb18f51ad\a5792e2\shared\template\Cargo.toml:2:8
  |
2 | name = "tauri-plugin-{{name}}"
  |        ^^^^^^^^^^^^^^^^^^^^^^^
  |

Environment

rustup 1.27.1 (54dd3d00f 2024-04-24)
rustc 1.79.0 (129f3b996 2024-06-10)
$ ./fastfetch.exe
                                ..,    **@**
                    ....,,:;+ccllll    ---------------------
      ...,,+:;  cllllllllllllllllll    OS: Windows 10 (Pro) x86_64
,cclllllllllll  lllllllllllllllllll    Host: B450M DS3H
llllllllllllll  lllllllllllllllllll    Kernel: WIN32_NT 10.0.19045.4529 (22H2)
llllllllllllll  lllllllllllllllllll    Uptime: 1 day, 4 hours, 28 mins
llllllllllllll  lllllllllllllllllll    Packages: 47 (choco)
llllllllllllll  lllllllllllllllllll    Shell: bash 5.2.26
llllllllllllll  lllllllllllllllllll    Display (LG ULTRAGEAR+): 3840x2160 @ 144Hz (as 2560x1440) [External]
                                       DE: Fluent
llllllllllllll  lllllllllllllllllll    WM: Desktop Window Manager
llllllllllllll  lllllllllllllllllll    WM Theme: Aero - #0078D7 (System: Dark, Apps: Light)
llllllllllllll  lllllllllllllllllll    Icons: Recycle Bin
llllllllllllll  lllllllllllllllllll    Font: Segoe UI (12pt) [Caption / Menu / Message / Status]
llllllllllllll  lllllllllllllllllll    Cursor: Windows Default (32px)
`'ccllllllllll  lllllllllllllllllll    Terminal: mintty 3.7.1
       `' \*::  :ccllllllllllllllll    Terminal Font: Lucida Console (9pt)
                       ````''*::cll    CPU: AMD Ryzen 5 3600 (12) @ 4.20 GHz
                                 ``    GPU: NVIDIA GeForce RTX 3060 Ti (7.85 GiB) [Discrete]
                                       Memory: 19.82 GiB / 55.93 GiB (35%)
riipandi commented 1 month ago

Hi @pluveto, I'm currently working on a macOS laptop, so the Windows issue might be missed. But thanks for the report, you can make a PR if you want.