{"record":{"id":"5dbde1b09fdefeaf","repo":"windmill-labs/windmill","slug":"yaml-syntax-error-in-wmill-yaml-yamlerror","errorCode":null,"errorMessage":"❌ YAML syntax error in wmill.yaml:\n   ${yamlError}\n   Please fix the YAML syntax in wmill.yaml or delete the file to start fresh.","messagePattern":"❌ YAML syntax error in wmill\\.yaml:\n   (.+?)\n   Please fix the YAML syntax in wmill\\.yaml or delete the file to start fresh\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/core/conf.ts","lineNumber":312,"sourceCode":"      );\n      process.exit(1);\n    }\n\n    return typeof conf == \"object\" ? conf : ({} as SyncOptions);\n  } catch (e) {\n    if (\n      e instanceof Error &&\n      (e.message.includes(\"overrides\") ||\n        e.message.includes(\"Obsolete configuration format\"))\n    ) {\n      throw e; // Re-throw the specific obsolete format error\n    }\n\n    // Since we already found the file path, this is likely a parsing or access error\n    if (e instanceof Error && e.message.includes(\"Error parsing yaml\")) {\n      const yamlError =\n        e.cause instanceof Error ? e.cause.message : String(e.cause);\n      throw new Error(\n        \"❌ YAML syntax error in wmill.yaml:\\n\" +\n          \"   \" +\n          yamlError +\n          \"\\n\" +\n          \"   Please fix the YAML syntax in wmill.yaml or delete the file to start fresh.\"\n      );\n    } else {\n      // File exists but has other issues (permissions, etc.)\n      throw new Error(\n        \"❌ Failed to read wmill.yaml:\\n\" +\n          \"   \" +\n          (e instanceof Error ? e.message : String(e)) +\n          \"\\n\" +\n          \"   Please check file permissions or fix the syntax.\"\n      );\n    }\n  }\n}","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/core/conf.ts#L294-L330","documentation":"readConfigFile caught a YAML parse failure while loading wmill.yaml and re-raises it annotated with the underlying parser error, since every sync command depends on this file and cannot continue with a corrupt config.","triggerScenarios":"Thrown at cli/src/core/conf.ts:312 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the YAML at the line/column shown in the embedded parser error (common causes: tabs, bad indentation, unquoted colons).","Validate with a YAML linter.","Delete wmill.yaml and re-run `wmill init` if it is dispensable."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}