{"record":{"id":"c8ef1a6e02353342","repo":"deepseek-ai/deepseek-harness","slug":"lsp-query-aborted-c8ef1a","errorCode":null,"errorMessage":"LSP query aborted","messagePattern":"LSP query aborted","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/lsp/lsp-stdio/src/instance.ts","lineNumber":130,"sourceCode":"      // A subprocess provider may run in another PID namespace or machine;\n      // the host PID would let the server monitor an unrelated process.\n      processId: null,\n      rootUri: this.spec.workspaceUri,\n      workspaceFolders: [{ uri: this.spec.workspaceUri, name: 'workspace' }],\n      capabilities: CLIENT_CAPABILITIES,\n      initializationOptions: this.spec.initializationOptions,\n    }) as WireInitializeResult\n    const capabilities = initializeResult.capabilities\n    // An omitted encoding defaults to utf-16; any other value is a protocol error we reject here.\n    negotiatePositionEncoding(capabilities.positionEncoding)\n    this.capabilities = capabilities\n    await this.connection.notify('initialized', {})\n  }\n\n  private async runQuery(request: LspProviderQuery, source: HostSource, signal?: AbortSignal): Promise<LspQueryResult> {\n    if (this.disposed) throw new LspError('LSP instance was disposed', 'LSP_DISPOSED')\n    /* v8 ignore next -- the abortable queue wait rejects a pre-aborted signal before runQuery; this is a belt-and-suspenders guard. */\n    if (signal?.aborted) throw abortError(signal)\n    // Observe abort during the handshake wait, and never pool a poisoned instance: if the wait ends\n    // in failure — an abort on a still-pending handshake, OR `initialize` rejecting (utf-8\n    // negotiation, malformed result) without the process exiting — tear the instance down so a\n    // permanently-rejecting/pending `ready` can't make every later query for this workspace fail.\n    try {\n      await abortable(this.ready, signal)\n    } catch (error) {\n      if (!this.dead) {\n        await this.startTeardown()\n      }\n      throw error\n    }\n    const capabilities = this.capabilities\n    /* v8 ignore next -- `ready` resolves only after capabilities are set, else it rejects above; defensive. */\n    if (capabilities === undefined) throw new Error('LSP instance is not initialized')\n    if (!supportsOperation(capabilities, request.operation)) {\n      throw new LspError(`server does not support ${request.operation}`, 'LSP_UNSUPPORTED_OPERATION')\n    }","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/lsp/lsp-stdio/src/instance.ts#L112-L148","documentation":"Error \"LSP query aborted\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/lsp/lsp-stdio/src/instance.ts:130 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-issue the LSP query; the abort was requested or the language server was restarting."],"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"}