{"record":{"id":"a779f6b3dca1b9d4","repo":"slint-ui/slint","slug":"path-is-still-loading","errorCode":null,"errorMessage":"{path:?} is still loading","messagePattern":"(.+?) is still loading","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"internal/compiler/typeloader.rs","lineNumber":1010,"sourceCode":"        self.revision = self.revision.wrapping_add(1);\n    }\n\n    pub fn revision(&self) -> u64 {\n        self.revision\n    }\n\n    /// Drop a document from the TypeLoader and invalidate all of its dependencies.\n    /// Returns the list of all (transitive) dependencies.\n    ///\n    /// This forces the compiler to entirely reload the document from scratch.\n    /// To only cause a re-analyze, but not a reparse, use [Self::invalidate_document]\n    pub fn drop_document(&mut self, path: &Path) -> Result<HashSet<PathBuf>, std::io::Error> {\n        let dependencies = self.invalidate_document(path);\n        self.all_documents.docs.remove(path);\n        self.bump_revision();\n\n        if self.all_documents.currently_loading.contains_key(path) {\n            Err(std::io::Error::new(ErrorKind::InvalidInput, format!(\"{path:?} is still loading\")))\n        } else {\n            Ok(dependencies)\n        }\n    }\n\n    /// Invalidate a document and all its dependencies.\n    ///\n    /// This will keep the CST of the document in cache, but mark that it needs to be re-analyzed\n    /// to reconstruct its types.\n    ///\n    /// To entirely forget a document and cause a complete re-parse, use [Self::drop_document].\n    pub fn invalidate_document(&mut self, path: &Path) -> HashSet<PathBuf> {\n        if let Some((d, _)) = self.all_documents.docs.get_mut(path) {\n            if let LoadedDocument::Document(doc) = d {\n                for import in &doc.imports {\n                    self.all_documents\n                        .dependencies\n                        .entry(Path::new(&import.file).into())","sourceCodeStart":992,"sourceCodeEnd":1028,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/typeloader.rs#L992-L1028","documentation":"Error \"{path:?} is still loading\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/typeloader.rs:1010 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the file to finish loading before requesting it again.","Avoid re-entrant loads of the same file in the type loader."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}