{"record":{"id":"45fc69cc17068cc5","repo":"multica-ai/multica","slug":"all-profiles-and-workspaces-root-are-mutually","errorCode":null,"errorMessage":"--all-profiles and --workspaces-root are mutually exclusive","messagePattern":"--all-profiles and --workspaces-root are mutually exclusive","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_daemon.go","lineNumber":1784,"sourceCode":"\tbyWorkspace, _ := cmd.Flags().GetBool(\"by-workspace\")\n\tbyTask, _ := cmd.Flags().GetBool(\"by-task\")\n\ttop, _ := cmd.Flags().GetInt(\"top\")\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tallProfiles, _ := cmd.Flags().GetBool(\"all-profiles\")\n\n\tif taskContext {\n\t\tif err := checkTaskDiskUsageScope(profile, rootOverride, allProfiles); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\tif byWorkspace && byTask {\n\t\treturn fmt.Errorf(\"--by-workspace and --by-task are mutually exclusive\")\n\t}\n\tif top < 0 {\n\t\treturn fmt.Errorf(\"--top must be a non-negative integer\")\n\t}\n\tif allProfiles && rootOverride != \"\" {\n\t\treturn fmt.Errorf(\"--all-profiles and --workspaces-root are mutually exclusive\")\n\t}\n\n\tif allProfiles {\n\t\treturn runDaemonDiskUsageAggregate(cmd, byWorkspace, top, output)\n\t}\n\n\tworkspacesRoot, err := resolveDiskUsageRoot(taskContext, profile, rootOverride)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve workspaces root: %w\", err)\n\t}\n\n\treport, err := daemon.ScanDiskUsage(workspacesRoot, daemon.ArtifactPatternsFromEnv())\n\tif err != nil {\n\t\treturn err\n\t}\n\t// Resolve before --top trims the slice: the batch endpoint costs the same\n\t// either way, and the JSON consumer sees statuses for everything it gets.\n\t// Skipped in a task: the fetcher authenticates with the Owner profile's","sourceCodeStart":1766,"sourceCodeEnd":1802,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_daemon.go#L1766-L1802","documentation":"Error \"--all-profiles and --workspaces-root are mutually exclusive\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_daemon.go:1784 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use either --all-profiles or --workspaces-root, not both."],"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-15T17:31:12.345Z"}