You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tauri-cli is not installed, trying to run the Build and Dev actions display very misleading error about cargo.toml file missing. Either the extension needs to check for this, or at least add a reminder to install tauri-cli in the extension description. VSCode recommends this extension when opening a tauri project, so you may assume that some users are building tauri app for the first time.
The text was updated successfully, but these errors were encountered:
OK, so the steps are: On a new machine (I used Windows Sandbox on Win 11) install Rust, with dependencies, VSCode. Then do cargo install create-tauri-app, then cargo create-tauri-app. Choose cargo package manager and no frameworks. Open the folder in VSCode. It suggests Tauri extension and rust-analyzer. Install both. Restart VSCode.
Run command: Tauri: Dev. It produces an error popup: "Couldn't detect package manager for current project.". Press hotkey for build task: "could not find Cargo.toml in C:\test\testrr or any parent directory". Then close VSCode and open src-tauri folder in it. Run Tauri: Dev. It reports "Tauri project not found".
Took me some time to understand that I missed cargo install tauri-cli.
If tauri-cli is not installed, trying to run the Build and Dev actions display very misleading error about cargo.toml file missing. Either the extension needs to check for this, or at least add a reminder to install tauri-cli in the extension description. VSCode recommends this extension when opening a tauri project, so you may assume that some users are building tauri app for the first time.
The text was updated successfully, but these errors were encountered: