Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix setup not working #2634

Open
gitmalong opened this issue Jun 16, 2024 · 0 comments
Open

Helix setup not working #2634

gitmalong opened this issue Jun 16, 2024 · 0 comments

Comments

@gitmalong
Copy link

gitmalong commented Jun 16, 2024

Describe the bug
I followed Leptos DX https://book.leptos.dev/getting_started/leptos_dx.html to configure my Helix editor to make it work with Rust + Leptos + Tailwind.

2024-06-16T22:22:47.280 helix_lsp::transport [ERROR] tailwindcss-ls err: <- StreamClosed
2024-06-16T22:23:24.562 helix_term::application [ERROR] Ignoring unknown notification from Language Server: protocol error: InvalidParams: Invalid params: missing field `message`.
2024-06-16T22:23:24.562 helix_term::application [ERROR] Ignoring unknown notification from Language Server: protocol error: InvalidParams: Invalid params: missing field `message`.
2024-06-16T22:23:40.556 helix_lsp::transport [ERROR] tailwindcss-ls err: <- StreamClosed
2024-06-16T22:29:44.481 helix_term::application [ERROR] Ignoring unknown notification from Language Server: protocol error: InvalidParams: Invalid params: missing field `message`.
2024-06-16T22:29:44.481 helix_term::application [ERROR] Ignoring unknown notification from Language Server: protocol error: InvalidParams: Invalid params: missing field `message`.

Leptos Dependencies

leptos_axum = { version = "0.6.11", optional = true }
leptos = { version = "0.6.11" }
leptos_meta = { version = "0.6.11" }
leptos_router = { version = "0.6.11" }
leptos-use = { version = "0.10.8" }
leptos_sse = { git = "https://github.com/messense/leptos_sse.git", branch = "main" }
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
    "dep:leptos_axum",
    "leptos/ssr",
    "leptos_meta/ssr",
    "leptos_router/ssr",
    "leptos_sse/ssr",
    "leptos_sse/axum",

To Reproduce
Helix languages.toml

[[language]]
name = "rust"
auto-format = true
language-servers = ["rust-analyzer", "tailwindcss-ls"]
roots = [
  "Cargo.toml",
  "Cargo.lock"
]

[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'

[language-server.tailwindcss-ls]
command = "tailwindcss-language-server"
args = ["--stdio"]
config = {userLanguages = { rust = "html", "*.rs" = "html" } }

[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
command = "rust-analyzer"
check.command = "clippy"
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false
procMacro = { ignored = { leptos_macro = [
    "server", "component"
] } } 

[language.formatter]
command = "rustfmt"

Expected behavior

  • No crash in LSP log
  • Auto completion
  • Type inlays etc

Additional context

  • I installed npm install -g @tailwindcss/language-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant