deepseek-ai/deepseek-harness · error
lsp-stdio: server ids must be non-empty strings
Error message
lsp-stdio: server ids must be non-empty strings
What it means
Plugin-load validation for the lsp-stdio plugin: a server entry in config.servers used an empty-string key. Server ids become provider ids and route keys, so blank ids are rejected before any provider is published.
Solutions
- Give every server a non-empty string id.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/lsp/lsp-stdio/src/index.ts:143 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/c64a1d8bc3a7d460.
Report an issue: GitHub.
Appendix: source
Thrown at packages/lsp/lsp-stdio/src/index.ts:143
*/
export async function apply(ctx: Context, config: Config): Promise<void> {
const entries = Object.entries(config.servers)
if (entries.length === 0) throw new Error('lsp-stdio: servers must contain at least one server')
const setupAbort = new AbortController()
const stopSetupCancellation = ctx.on('internal/plugin', (fiber) => {
// An async plugin callback must observe its own disposal before Cordis can
// run effect cleanup, because unload otherwise waits for this callback.
if (fiber === ctx.fiber && fiber.uid === null) {
setupAbort.abort(new Error('lsp-stdio setup disposed'))
}
})
// Resolve every server-local setting before registration so a bad later command or bound cannot
// publish an earlier provider. Registry-level mapping conflicts are rolled back below.
const providers = await (async () => {
const lookups = entries.map(async ([providerId, rawConfig]) => {
if (providerId.trim() === '') throw new Error('lsp-stdio: server ids must be non-empty strings')
const resolved = rawConfig as ResolvedServerConfig
validateServerConfig(providerId, resolved)
const executable = await ctx.subprocess.resolveExecutable(
resolved.command,
resolved.env,
setupAbort.signal,
)
setupAbort.signal.throwIfAborted()
return new LocalLspProvider(
providerId,
ctx.fs,
resolved,
executable,
spec => ctx.subprocess.spawn(spec),
)
})
try {
return await Promise.all(lookups)View on GitHub (pinned to b150a551b8)