0b1kn00b
(0b1kn00b)
May 26, 2023, 10:18am
1
How should I be invoking this? is --display build.hxml
correct?
[[language]]
name='haxe'
scope='source.haxe'
injection-regex='^(hx|haxe)$'
file-types = ["hx"]
roots = ["*.hxml"]
diagnostic-severity = "Hint"
indent = { tab-width = 2, unit = " " }
language-server = { command = "haxe", args = ["--display","build.hxml"] }
2023-05-26T12:09:58.225 helix_lsp::transport [ERROR] err <- "Error: Could not process argument src/main/haxe\n"
2023-05-26T12:09:58.225 helix_lsp::transport [ERROR] err <- "Invalid character: /\n"
ablum
(Alexander Blum)
May 26, 2023, 11:07am
2
languageserver comes as a Javascript file, it’s not just calling Haxe compiler with some parameters. that’s why you were unsuccessful in getting it to work.
please follow the steps outlined here: GitHub - vshaxe/haxe-language-server: Language Server Protocol implementation for the Haxe language to build said JS file and adapt Neovim/Kate configuration to your editor/IDE. once you have a working config feel free to open a PR to add a section to README.md
for Helix.
0b1kn00b
(0b1kn00b)
May 26, 2023, 11:48am
3
gotcha, I thought it was implemented in the Haxe compiler, thankyou.
danielo515
(Daniel Rodríguez Rivero)
May 27, 2023, 11:21am
4
I also thought it was built into the compiler, since the LSP is entirely built in haxe
0b1kn00b
(0b1kn00b)
May 29, 2023, 6:22am
5
The server translates the calls from LSP to the Haxe --display
api, I think