Biome (the new official fork of Rome) language server is giving log errors, is this something to report to the devs? Any input welcome! #8987
Replies: 5 comments 10 replies
-
Currently we only support dynamic registration for didChangeWatchedFiles but biome is sending them for other methods too. You can try this patch for foratting for example: diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index e6e1f8a0..949683a0 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -645,6 +645,9 @@ pub(crate) async fn initialize(&self, enable_snippets: bool) -> Result<lsp::Init
dynamic_registration: Some(false),
resolve_support: None,
}),
+ formatting: Some(lsp::DocumentFormattingClientCapabilities {
+ dynamic_registration: Some(false),
+ }),
..Default::default()
}),
window: Some(lsp::WindowClientCapabilities { but I believe unless we explicitly say we enable dynamic registration for a method by passing |
Beta Was this translation helpful? Give feedback.
-
I tried only specifying biome and it doesn't format when I do that either. |
Beta Was this translation helpful? Give feedback.
-
Any news on this? Still can't use helix + biome |
Beta Was this translation helpful? Give feedback.
-
Strangely I was getting this same error but neither the formatter nor the linter was working. The solution proposed by ghost fixed the formatter but the linter issue remained. No solution worked (closing and launching Kitty instance again didn't do anything either). I rebooted my system and everything is working awesome again. I removed the formatter lines suggested by ghost and it still works. Strange. |
Beta Was this translation helpful? Give feedback.
-
If you don't install biome globablly, this should work instead
|
Beta Was this translation helpful? Give feedback.
-
I am trying to configure https://github.com/biomejs/biome/ and update their Helix config page biomejs/biome#1031. I get the following in the Helix log. It mentions
Please report this upstream to the language server
, but I am not sure what to report, if anything.Biome not seem to want to use the LSP formatting, but the linting seems to work well, I assume that is because of
unsupported method: textDocument/formatting
?UPDATE: I found this info: biomejs/biome#87
Does Helix support dynamic registration of the events?
It is a great project, I recommend people check it out, you should be able to dump eslint with all its config cruft:
Beta Was this translation helpful? Give feedback.
All reactions