I need help getting Svelte Language Server to work in neovim. It works in one computer, but not on the other using the same config. TypeScript Language Server works in the same codebase, but Svelte doesn't.
Discussion
What should I try?
I've already deleted and reinstalled all packages possible, I have everything running, I have all the servers and whatnot.
Is there a CLI tool that allows me to query a language server manually to debug maybe?
If all else fails you can always log :D I'm so used to writing concurrent code with short tight loops that debuggers are worthless anyway.
I am not trying to use a debugger, I'm trying to get the editor to show me types.
VScode right?
I have never been able to get that thing to work properly for Go and honestly after 6 years and Microsoft buying it I'm not surprised it hasn't been fixed.
I use IntelliJ and since I first used it in 2016 it's static analysis tooling just kept getting better. I was super happy when it started fully resolving interfaces, which previously could be a real pain when you are looking at code that uses the interface but you want to know what concrete types it might be calling. That's been working for about 3 years now.
I'd bet that Webstorm will instantly solve the problem for you.
VSCode is retarded, and even though the GUI of IntelliJ's new UI is buggy on especially Wayland, I just use the old one, it's good enough anyway. Also, I only pay $10 a month for my license for Goland. If one splashes out for a year long license, you can use it forever after up to some version.
Not paid by Jetbrains and if I was I would say so. I did have an open source project license for Goland for a while too. You might be able to get that, it basically is free.
JavaScript is so awesome. More awesome than python tho.
TypeScript 🤮
Svelte teaches me that JS + JSDoc is better.
It's kinda nice but "@type" breaks JSDoc and there are is tooling that can generate docs after that. =(
Oops, meant to say "there is NO tooling"
Basically better to use @param and @return for JSdoc compatibility rather than free form metaprogram expression of @type
A smart IDE is my main tooling and the source code is my main documentation. I'm happy with that.
I hear ya, it's a popular workflow.
I'm not a fan IDE's.
Syntax highlights and tag based completion is enough for me.
Give me an interactive debugger and I'll build a full node in frontend. Lol
[ERROR][2023-09-04 15:25:34] .../vim/lsp/rpc.lua:734 "rpc" "svelteserver" "stderr" "TypeError: Cannot read properties of undefined (reading 'getSourceFile')
https://github.com/sveltejs/language-tools/issues/2008 may be related?
upgrade your neovim to the last nightly version
check :lspInfo
reinstall it using :Mason or what your using
you may also copy your config from the working host is you are lazy like me
Permission issue?
Hmm. I've used svelte + neovim for some time, but without LSP.
Off-topic:
Svelte-core ditched TS recently 👏
On-topic:
```
:LspInfo
```
Is the pid running?
OK, this is not the right place to talk about this. Please ignore this note.
why not 🤨
I guess the VSCode + TypesScript era is officially ending.
I can feel the pain, watched the rise and fall of netbeans, FlashDevelop, eclipse, intellij, android studio.
IDE's are counterintuitive cuz
the moment your tools think themselves intelligent you end up with:
er.com/origin/c6/c6afab251a20e6d0eb80b983450bc66e_w200.gif
#writecode4humans!robots