{"record":{"id":"d611ddbc945ee2ac","repo":"deepseek-ai/deepseek-harness","slug":"settings-file-watcher-error-on-s","errorCode":null,"errorMessage":"settings-file: watcher error on %s","messagePattern":"settings-file: watcher error on (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/settings/settings-file/src/index.ts","lineNumber":259,"sourceCode":"          stabilityThreshold: this.spec.debounceMs,\n          pollInterval: Math.max(1, Math.min(this.spec.debounceMs, 10)),\n        },\n      })\n      : undefined\n    if (watcher !== undefined) {\n      watcher.on('all', () => {\n        if (this.closed) return\n        this.queueRefresh()\n      })\n      watcher.on('ready', () => {\n        // The base init's load raced the watcher's own setup: a change written\n        // between that read and the watcher becoming active never fires an\n        // event. One reconcile at ready closes the gap.\n        if (this.closed) return\n        this.queueRefresh()\n      })\n      watcher.on('error', (error) => {\n        this.ctx.logger.warn('settings-file: watcher error on %s', this.spec.filename)\n        this.ctx.logger.warn(error)\n      })\n    }\n    yield async () => {\n      // Quiesce every operation chain, even when no watcher is configured.\n      this.closed = true\n      await watcher?.close()\n      await this.operations\n    }\n  }\n\n  /** Parse one document text into raw sections, failing on a non-map root. */\n  private parse(text: string): Record<string, unknown> {\n    let root: unknown\n    if (this.spec.format === 'yaml') {\n      // `prettyErrors` is on only for `linePos`; `error.message` is never\n      // used, because the parser quotes the offending source line and a\n      // settings document can hold a `role('secret')` value.","sourceCodeStart":241,"sourceCodeEnd":277,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/settings/settings-file/src/index.ts#L241-L277","documentation":"Error \"settings-file: watcher error on %s\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/settings/settings-file/src/index.ts:259 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the watched settings file path and filesystem watcher support; the watcher error names the file."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}