{"record":{"id":"9576b4a55c5923e3","repo":"JanDeDobbeleer/oh-my-posh","slug":"no-active-config-found","errorCode":null,"errorMessage":"NO ACTIVE CONFIG FOUND","messagePattern":"NO ACTIVE CONFIG FOUND","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/segments/firebase.go","lineNumber":63,"sourceCode":"\t// of the path to the project and the project name\n\n\t// Test if the current directory is a project path\n\t// and if it is, return the project name\n\tfor key, value := range data.ActiveProject {\n\t\tif strings.HasPrefix(f.env.Pwd(), key) {\n\t\t\tf.Project = value\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}\n\nfunc (f *Firebase) getActiveConfig(cfgDir string) (string, error) {\n\tactiveConfigFile := filepath.Join(cfgDir, \"firebase-tools.json\")\n\tactiveConfigData := f.env.FileContent(activeConfigFile)\n\tif activeConfigData == \"\" {\n\t\treturn \"\", errors.New(FIREBASENOACTIVECONFIG)\n\t}\n\treturn activeConfigData, nil\n}\n\nfunc (f *Firebase) getFirebaseData(configFile string) (*FirebaseData, error) {\n\tvar data FirebaseData\n\n\terr := json.Unmarshal([]byte(configFile), &data)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &data, nil\n}\n","sourceCodeStart":45,"sourceCodeEnd":78,"githubUrl":"https://github.com/JanDeDobbeleer/oh-my-posh/blob/0976794618c5ed95de0985dded50de1b4dc914cb/src/segments/firebase.go#L45-L78","documentation":"The firebase segment reads the Firebase CLI's active project from ~/.config/configstore/firebase-tools.json. If that file is missing or empty, getActiveConfig() returns the FIREBASENOACTIVECONFIG error ('NO ACTIVE CONFIG FOUND'), and the segment disables itself.","triggerScenarios":"Enabled() runs while firebase-tools.json does not exist or contains nothing — Firebase CLI installed but `firebase use` never run, or a non-default config directory passed in.","commonSituations":"Fresh machine where firebase-tools was installed but no project selected; projects without .firebaserc; running inside a container where the Firebase CLI config was never created.","solutions":["Run `firebase use --add` (or `firebase use <project>`) in a Firebase project to create the active config.","Log in with `firebase login` first if the configstore doesn't exist at all.","Disable the firebase segment in your theme if you don't work with Firebase in that shell."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"test -s ~/.config/configstore/firebase-tools.json && echo ok || echo 'run: firebase use <project>'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run `firebase use <project>` after installing the Firebase CLI.","Initialize firebase-tools per machine/container before enabling the segment.","Let the segment hide itself instead of forcing display when no project is active."],"tags":["firebase","config-file","segment-disabled"],"backgroundTag":"missing-config-file","analyzedSha":"0976794618c5ed95de0985dded50de1b4dc914cb","analyzedAt":"2026-08-31T23:41:19.708Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}