{"record":{"id":"f3ade94efe8a0f65","repo":"slint-ui/slint","slug":"could-not-locate-slint-lsp-server-binary-neither-in-bundled","errorCode":null,"errorMessage":"Could not locate slint-lsp server binary, neither in bundled bin/ directory nor relative in ../target","messagePattern":"Could not locate slint-lsp server binary, neither in bundled bin/ directory nor relative in \\.\\./target","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"editors/vscode/src/extension.ts","lineNumber":131,"sourceCode":"                context.extensionPath,\n                \"..\",\n                \"..\",\n                \"target\",\n                \"release\",\n                \"slint-lsp\" + program_extension,\n            ),\n            path.join(\n                context.extensionPath,\n                \"bin\",\n                \"slint-lsp\" + program_extension,\n            ),\n            path.join(context.extensionPath, \"bin\", lsp_platform.program_name),\n        ];\n\n        const serverModule = lspSearchPaths.find((path) => existsSync(path));\n\n        if (serverModule === undefined) {\n            console.warn(\n                \"Could not locate slint-lsp server binary, neither in bundled bin/ directory nor relative in ../target\",\n            );\n        }\n        return serverModule;\n    }\n\n    if (path.isAbsolute(lsp_binary_path)) {\n        // The slint-lsp override is a absolute path: Look in that path only\n        if (existsSync(lsp_binary_path)) {\n            return lsp_binary_path;\n        }\n        console.warn(\n            \"Could not locate the configured slint-lsp server binary at absolute path\",\n        );\n        return undefined;\n    }\n\n    // The slint-lsp override is a relative path: Look relative to PATH","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/slint-ui/slint/blob/bb937076de3f7919766c1f25e2e969367cf77e9a/editors/vscode/src/extension.ts#L113-L149","documentation":"The Slint VS Code extension's find_lsp_binary searches for the slint-lsp server binary in the bundled bin/ directory (platform-specific program_name) and then relative to ../target. This warning is emitted when none of those search paths exist, and the function returns undefined, so the language server cannot be started. The extension logs it instead of throwing so VS Code can surface that no LSP features will work.","triggerScenarios":"Activating the extension with neither a bundled binary at <extensionPath>/bin/<program_name> nor a build artifact at ../target/**/slint-lsp present; developing the extension from source without having built the LSP server; a platform whose program_name binary was not bundled at package time.","commonSituations":"Running the extension via 'Run Extension' in dev mode before running cargo build; installing a dev/nightly VSIX that skipped bundling; cloning a fresh checkout where ../target does not exist yet.","solutions":["Build the LSP server: cargo build -p slint-lsp (so ../target contains slint-lsp)","Place the platform binary at <extensionPath>/bin/<program_name> (bundled installs)","Set the slint.lsp binary path override setting to an existing absolute or PATH-visible binary","Reinstall the official extension package which bundles the correct binary for your platform"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"const candidates = [path.join(extPath, 'bin', 'slint-lsp'), path.join(extPath, '..', 'target', 'debug', 'slint-lsp')];\nif (!candidates.some(existsSync)) console.warn('slint-lsp not built; run cargo build -p slint-lsp');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run cargo build -p slint-lsp before launching the extension in dev mode","Verify bin/ bundling in your packaging/CI step for each platform","Configure the slint.lsp binary override during development","Check the extension host log for this warning right after activation"],"tags":["vscode","lsp","binary","setup"],"backgroundTag":"file-not-found","analyzedSha":"bb937076de3f7919766c1f25e2e969367cf77e9a","analyzedAt":"2026-09-16T01:37:20.251Z","contentChangedAt":"2026-09-16T01:37:20.251Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}