-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
- When using
yarn tauri dev, the window closes after executing atauri::commandand automatically reopen. With no any panic message. - When
yarn buildand then usingcargo run, the program works just fine, no any error occurs. Which is wired.
I guess this is a bug of @tauri/cli.
Reproduction
git clone https://github.com/Tnze/ffxiv-best-craft.gitgit checkout e804ed40496595fb3143f38bf641b2f62c15dc07yarn installyarn tauri dev- Click the second button

Expected behavior
Expecte the cli doesn't close and reopen my window.
Platform and versions
yarn-run-tauri 1.1.1
› Node.js: 18.10.0
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 3.2.1
› rustup: 1.25.1
› rustc: 1.66.0-nightly
› cargo: 1.66.0-nightly
› Rust toolchain: nightly-x86_64-pc-windows-msvc
Packages
› @tauri-apps/cli [NPM]: 1.1.1
› @tauri-apps/api [NPM]: 1.1.0
› tauri [RUST]: 1.1.1,
› tauri-build [RUST]: 1.1.1,
› tao [RUST]: 0.14.0,
› wry [RUST]: 0.21.1,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:5173/
› framework: Vue.js
App directory structure
├─ .git
├─ .vscode
├─ .yarn
├─ dist
├─ node_modules
├─ public
├─ src
└─ src-tauriStack trace
DOESN'T EXISTAdditional context
The tauri::command executed is this one:
The defining of app_state is tauri::State<'_, AppState> which has to write a '_ lifetime for pass the compiling. That is different from other commands. Is that expected?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug