{"record":{"id":"5ed0752cc7316efb","repo":"multica-ai/multica","slug":"local-directory-daemon-id-is-required-no-exist","errorCode":null,"errorMessage":"local_directory: --daemon-id is required (no existing daemon_id to merge with)","messagePattern":"local_directory: --daemon-id is required \\(no existing daemon_id to merge with\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":908,"sourceCode":"\t\t\t} else {\n\t\t\t\tref[\"label\"] = refLabel\n\t\t\t}\n\t\t}\n\t\tif modeSet {\n\t\t\t// An empty value clears the field back to the in_place default,\n\t\t\t// mirroring how --ref-label clears a label.\n\t\t\tmode := strings.TrimSpace(mustString(cmd, \"execution-mode\"))\n\t\t\tif mode == \"\" {\n\t\t\t\tdelete(ref, \"execution_mode\")\n\t\t\t} else {\n\t\t\t\tref[\"execution_mode\"] = mode\n\t\t\t}\n\t\t}\n\t\tif v, ok := ref[\"local_path\"].(string); !ok || v == \"\" {\n\t\t\treturn nil, false, fmt.Errorf(\"local_directory: --local-path is required (no existing local_path to merge with)\")\n\t\t}\n\t\tif v, ok := ref[\"daemon_id\"].(string); !ok || v == \"\" {\n\t\t\treturn nil, false, fmt.Errorf(\"local_directory: --daemon-id is required (no existing daemon_id to merge with)\")\n\t\t}\n\t\treturn ref, true, nil\n\tdefault:\n\t\t// Unknown type or empty (resource not found) — caller must use --ref.\n\t\tif cmd.Flags().Changed(\"url\") || cmd.Flags().Changed(\"default-branch-hint\") ||\n\t\t\tcmd.Flags().Changed(\"local-path\") || cmd.Flags().Changed(\"daemon-id\") ||\n\t\t\tcmd.Flags().Changed(\"ref-label\") || cmd.Flags().Changed(\"execution-mode\") {\n\t\t\treturn nil, false, fmt.Errorf(\"no built-in shortcut for resource type %q; pass the full payload via --ref '<json>'\", resourceType)\n\t\t}\n\t\treturn nil, false, nil\n\t}\n}\n\nfunc mustString(cmd *cobra.Command, name string) string {\n\tv, _ := cmd.Flags().GetString(name)\n\treturn v\n}\n","sourceCodeStart":890,"sourceCodeEnd":926,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L890-L926","documentation":"Error \"local_directory: --daemon-id is required (no existing daemon_id to merge with)\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:908 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --daemon-id; there is no existing daemon_id to merge with."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}