{"record":{"id":"55d60507baecc832","repo":"Leantime/leantime","slug":"failed-to-clear","errorCode":null,"errorMessage":"Failed to clear: ","messagePattern":"Failed to clear: ","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/Command/ClearLanguage.php","lineNumber":60,"sourceCode":"    protected function execute(InputInterface $input, OutputInterface $output): int\n    {\n\n        $config = app()->make(Environment::class);\n        $language = app()->make(Language::class);\n\n        $io = new SymfonyStyle($input, $output);\n\n        $io->section('Clearing Language Cache');\n\n        $langList = $language->getLanguageList();\n\n        if ($langList) {\n            foreach ($langList as $key => $lang) {\n                $result = Cache::store('installation')->forget('languages.lang_'.$key);\n                if ($result) {\n                    $this->components->info('Cleared: '.$key);\n                } else {\n                    $this->components->warn('Failed to clear: '.$key);\n                }\n\n            }\n        }\n\n        $this->components->info('cleared language file cache');\n\n        return Command::SUCCESS;\n    }\n}\n","sourceCodeStart":42,"sourceCodeEnd":71,"githubUrl":"https://github.com/Leantime/leantime/blob/9a9f49f1008f4782b30f6723c54228f4f992e636/app/Command/ClearLanguage.php#L42-L71","documentation":"Error \"Failed to clear: \" thrown in Leantime/leantime.","triggerScenarios":"Thrown at app/Command/ClearLanguage.php:60 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9a9f49f1008f4782b30f6723c54228f4f992e636","analyzedAt":"2026-08-21T02:37:38.966Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}