-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Problems with Haxe Language Server #6176
Comments
That log looks ok actually. I think the client/registerCapability is benign: the Haxe language server shouldn't be sending it but in practice I don't think I've ever seen that cause problems. Even running with #6058 (where we respond to that request with an error) I don't see any difference in behavior. I think this one is especially benign because it sends I see errors when trying to use any LSP feature though:
It looks like the server has a bug where it needs the a didChangeConfiguration notification to start up (vshaxe/vshaxe#359). You can add the [[language]]
name = "haxe"
scope = "source.haxe"
injection-regex = "Haxe"
file-types = ["hx"]
roots = [ "build.hxml" ]
indent = { tab-width = 4, unit = " " }
language-server = { command = "node", args = ["/home/daniel/.node/haxe-server.js"] }
config = { displayArguments = ["build.hxml"] }
[[grammar]]
name = "haxe"
source = { git = "https://github.com/vantreeseba/tree-sitter-haxe", rev = "ca7ed7931a93a0434cd1f5d6bb6c333865fe711a" } Some other notes I saw in vshaxe's issue tracker:
|
We may want to always send configuration in the initial didChangeConfiguration to unblock servers like this when the From vshaxe/vshaxe#359 (comment) it sounds like the contributors for vshaxe are interested in refactoring to use workspace/configuration which I think is a good long-term fix. |
Summary
I can't get the haxe language server to work. It seems to be due to helix not implementing the
client/registerCapability
response from the lsp server, but I'm fairly new to rust, this editor, and the LSP protocol itself, so it could be something wrong with my config for all I know.Reproduction Steps
I tried this:
languages.toml
file.languages.toml
Helix log
helix.log
Platform
Linux
Terminal Emulator
alacritty
Helix Version
helix 22.12
The text was updated successfully, but these errors were encountered: