Repository navigation
Svelte Language Server consistently fails during initialization #3180
Replies: 1 comment
|
The 3 seconds is the giveaway. Acode's LSP client ( this.timeout = (_a = config.timeout) !== null && _a !== void 0 ? _a : 3000;
...
req.reject(new Error("Request timed out"));( There's no built-in Svelte server in Acode, so a custom server has no timeout of its own and gets the 3000 ms default. You can raise it per server: Settings > Language Servers > your svelte server > Advanced > Startup timeout Try 15000 or 20000 (the minimum it accepts is 1000). That value is passed as the client timeout in if (server.startupTimeout && !clientConfig.timeout) {
clientConfig.timeout = server.startupTimeout;
}For comparison, the built-in "TypeScript 7 / JavaScript (Native STDIO)" server in Close and reopen the .svelte file (or restart the app) after changing it so a new client is created. If it still times out at 20 s, the next thing I'd check is whether svelteserver runs at all from the terminal with |
Uh oh!
There was an error while loading. Please reload this page.
I'm having an issue with the Svelte Language Server. The server appears to start successfully, the LSP bridge opens a port, and the connection is established. However, the initialization process consistently times out after approximately 3 seconds.
Here are the logs:
What could cause the initialization request to time out even though the LSP server successfully starts and establishes a connection?
All reactions