{"record":{"id":"7d1d4e94947da9b3","repo":"tauri-apps/tauri","slug":"not-implemented","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tauri-codegen/src/context.rs","lineNumber":202,"sourceCode":"        FrontendDist::Url(_url) => Default::default(),\n        FrontendDist::Directory(path) => {\n          let assets_path = config_parent.join(path);\n          if !assets_path.exists() {\n            panic!(\n              \"The `frontendDist` configuration is set to `{path:?}` but this path doesn't exist\"\n            )\n          }\n          EmbeddedAssets::new(assets_path, &options, map_core_assets(&options))?\n        }\n        FrontendDist::Files(files) => EmbeddedAssets::new(\n          files\n            .iter()\n            .map(|p| config_parent.join(p))\n            .collect::<Vec<_>>(),\n          &options,\n          map_core_assets(&options),\n        )?,\n        _ => unimplemented!(),\n      },\n      None => Default::default(),\n    };\n    quote!(#assets)\n  };\n\n  let out_dir = ensure_out_dir()?;\n\n  let default_window_icon = {\n    if target == Target::Windows {\n      // handle default window icons for Windows targets\n      let icon_path = find_icon(\n        &config,\n        &config_parent,\n        |i| i.ends_with(\".ico\"),\n        \"icons/icon.ico\",\n      );\n      if icon_path.exists() {","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/tauri-apps/tauri/blob/460ec35447493200d64290dd7f015d5a91d0fd58/crates/tauri-codegen/src/context.rs#L184-L220","documentation":"tauri-codegen's map_isolation converts the configured asset pattern for the isolation application into code. Only PatternKind::Isolation { assets: AssetResolvers::Raw } style inputs are handled; any other AssetResolvers variant hits the `unimplemented!()` catch-all. This signals a codegen path the macro author never implemented for that pattern configuration.","triggerScenarios":"Using a `pattern` configuration in tauri.conf.json / the ContextOptions whose assets form isn't one of the explicitly matched AssetResolvers cases (e.g. a config-derived resolver list in a build script path).","commonSituations":"Build-time compile panic while running tauri build / generate_context! with an experimental `withGlobalTauri`/isolation pattern configuration; mixing codegen options programmatically via tauri-codegen APIs in a custom build script.","solutions":["Check the pattern configuration in tauri.conf.json against the documented schema and remove the unsupported assets variant","Pin/upgrade tauri-build and tauri-codegen to matching versions that implement this pattern path","Avoid hand-constructing ContextOptions with unusual AssetResolvers values in custom codegen"],"exampleFix":"// before (tauri.conf.json)\n\"app\": { \"security\": { \"pattern\": { \"use\": \"isolation\", \"options\": { \"assets\": [\"../isolation\"] } } } }\n// after\n\"app\": { \"security\": { \"pattern\": { \"use\": \"isolation\", \"options\": { \"dir\": \"../isolation/dist\" } } } }","handlingStrategy":"validation","validationCode":"// check tauri.conf.json pattern config against the tauri-codegen schema before building\n// e.g. keep pattern.use to documented values and options.dir to a directory","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep tauri, tauri-build and tauri-codegen versions aligned","Only use documented pattern configurations in tauri.conf.json","Run `cargo build` early after config changes to surface codegen panics at dev time"],"tags":["codegen","build-time","unimplemented","rust"],"backgroundTag":"method-not-implemented","analyzedSha":"460ec35447493200d64290dd7f015d5a91d0fd58","analyzedAt":"2026-09-18T23:55:51.277Z","contentChangedAt":"2026-09-18T23:55:51.277Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}