{"record":{"id":"2fed04012621e4b6","repo":"deepseek-ai/deepseek-harness","slug":"settings-watcher-for-s-failed","errorCode":null,"errorMessage":"settings: watcher for \"%s\" failed","messagePattern":"settings: watcher for \"(.+?)\" failed","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/settings/settings/src/index.ts","lineNumber":803,"sourceCode":"          // contained here instead of becoming an unhandled rejection.\n          void Promise.resolve(returned as PromiseLike<unknown>).then(undefined, (error: unknown) => {\n            this.warnListenerFailure(registration.ns, error)\n          })\n        }\n      } catch (error) {\n        if ((error as { code?: unknown } | null)?.code === 'INVARIANT') {\n          invariantFailure ??= error\n          continue\n        }\n        this.warnListenerFailure(registration.ns, error)\n      }\n    }\n    if (invariantFailure !== undefined) throw invariantFailure as Error\n  }\n\n  /** Contained-watcher diagnostic shared by the sync and async failure paths. */\n  private warnWatcherFailure(ns: SettingsNamespace, error: unknown): void {\n    this.ctx.logger.warn('settings: watcher for \"%s\" failed', ns)\n    this.ctx.logger.warn(error)\n  }\n\n  /** Contained-listener diagnostic shared by the sync and async failure paths. */\n  private warnListenerFailure(ns: SettingsNamespace, error: unknown): void {\n    this.ctx.logger.warn('settings: a settings/updated listener for \"%s\" failed', ns)\n    this.ctx.logger.warn(error)\n  }\n}\n\n/**\n * Value mirror of the `FiberState` members {@link isUnloading} compares\n * against: a const enum has no runtime object to import, and the value is\n * needed at runtime (same rationale as the CLI boot driver's mirror).\n */\nconst FIBER_DISPOSED = 4\nconst FIBER_UNLOADING = 5\n","sourceCodeStart":785,"sourceCodeEnd":821,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/settings/settings/src/index.ts#L785-L821","documentation":"Error \"settings: watcher for \"%s\" failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/settings/settings/src/index.ts:803 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the watcher target and filesystem support for the named settings 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"}