taplo
taplo copied to clipboard
LSP does not work
Ran cargo install taplo-cli and waited for all three hundred five dependencies to download and compile.
Checked that helix found the taplo binary.
Checked that taplo lists an lsp subcommand.
No error messages are printed when the lsp subcommand is run.
No error messages are printed when the lsp command is run with --log-spans.
No error messages are printed when the lsp command is run with --verbose.
Finally when run with --log-spans and --verbose this little gem pops up:
the LSP is not part of this build, please consult the documentation about enabling the functionality
If the LSP is not included in this rather lengthy build, why is there an lsp command and why does it fail silently?
Welp, off to the docs which have no descriptive text.
…
Some documentation might be missing here. The reference is probably more the website but the features are written at the end only.
I think there's a few options to solve this issue (PRs are welcome):
- Make
lspa default feature. How often istaploused without LSP? - Improve the documentation to mention that
cargo install taplo-cli --features=lspis the way to go.
Make lsp a default feature. How often is taplo used without LSP?
I'm fine with this, the schema handling (including HTTP-related code) is by far the most bloated part of the application, compared to that the LSP code is rather tiny, the separate lsp feature doesn't mean as much as it used to.
@panekj Is it possible to make sure that the lsp version of taplo is available through npm for the next release as the default? It is a really bad situation currently, everyone wants the lsp but are forced to jump through hoops to get it causing confusion and wasted time. Cheers!