Svelte & Typescript LSP Errors #9623
Unanswered
Proziam
asked this question in
Troubleshooting
Replies: 1 comment 4 replies
-
why was this converted into a discussion? @the-mikedavis the syntax highlight for types outside of function does not seem to work properly, I also have a couple of colleagues who have the same problem. this is my language config for svelte: [[language]]
name = "svelte"
auto-format = true
language-servers = [ { name = "tailwindcss-ls", except-features = ["hover"] }, "svelteserver", "emmet-ls", "eslint-ls" ]
formatter = { command = "prettier", args = ["--parser", "html"]} and this is my Configured language servers:
✓ tailwindcss-language-server: /Users/valerio.pescatori/.volta/bin/tailwindcss-language-server
✓ svelteserver: /Users/valerio.pescatori/.volta/bin/svelteserver
✓ emmet-language-server: /Users/valerio.pescatori/.volta/bin/emmet-language-server
✓ vscode-eslint-language-server: /Users/valerio.pescatori/.volta/bin/vscode-eslint-language-server
Configured debug adapter: None
Highlight queries: ✓
Textobject queries: ✘
Indent queries: ✓ I also have the does anybody else have the same issues? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Same issue on Windows running helix in powershell 7.4.1 and Arch linux (not in WSL).
I've been running into consistent errors when working with svelte (current, not svelte 5). Lots of "expected" a token where no such token would make sense, or syntax highlighting gives up in random places even in very short documents which leaves 50% or more of the text plain.
I've tried re-installing and updating the TS and Svelte language servers per the documentation - https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers. And I've tried completely deleting any configuration in
languages.toml
to no avail.For a sanity check I installed VScode and didn't experience the same issues so I'm probably just doing something wrong.
Reproduction Steps
I tried this:
hx
in some svelte projectI expected this to happen:
Syntax highlighting to work normally and not to see random errors
Instead, this happened:
Syntax highlighting breaks, random errors pop up on correct code
Helix log
~/.cache/helix/helix.log
Platform
Windows / Linux
Terminal Emulator
Powershell 7.4.1 and Wezterm
Installation Method
Winget and built from source, AUR on Arch
Helix Version
23.10
Beta Was this translation helpful? Give feedback.
All reactions