Replies: 1 comment 1 reply
-
Please see #12378 - this is a bug in rust-analyzer that's hopefully fixed on their next release. Until then you can downgrade it to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, the tauri::generate_context!() in:
#[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_opener::init()) .invoke_handler(tauri::generate_handler![get_pokemon_types, read_pokemons, get_pokemon_forms, parse_evolution_chain, get_evo_sprite, fetch_raw_json, get_species_names, parse_evolution_detail, parse_moves]) .run(tauri::generate_context!()) .expect("error while running tauri application"); }
is returning a
the files works fine yesterday, but today after i added something to lib.rs it suddenly popped up, I tried reverting to yesterdays save but the error still persists,
cargo.toml:
[package]
name = "pokedex_tauri"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
[lib]
name = "pokedex_tauri_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
rustemon = "4.0.0"
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1", features = ["full"] }
tauri.conf.json:
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "pokedex_tauri",
"version": "0.1.0",
"identifier": "com.pokedex_tauri.app",
"build": {
"frontendDist": "../src"
},
"app": {
"withGlobalTauri": true,
"windows": [
{
"title": "pokedex_tauri",
"width": 800,
"height": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
}
}
error message:
Beta Was this translation helpful? Give feedback.
All reactions