sublimelsp / LSP

Client implementation of the Language Server Protocol for Sublime Text
https://lsp.sublimetext.io/
MIT License
1.64k stars 182 forks source link

Feature Request: Add Support for Taplo for TOML Files #2508

Open I-AM-A-NOOB opened 1 month ago

I-AM-A-NOOB commented 1 month ago

Is your feature request related to a problem? Please describe.

Currently, the LSP packages does not include a Language Server for TOML files.

Describe the solution you'd like

Please publish a new package which based on the taplo library (https://github.com/tamasfe/taplo) to provide Language Server functionality for TOML files within Sublime Text.

Describe alternatives you've considered

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

Additional context

jfcherng commented 1 month ago

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

https://github.com/jfcherng-sublime/ST-my-settings/blob/0146cc3e1bef21794d74962a073b4ab89c629a67/Packages/User/LSP.sublime-settings#L51-L55

I-AM-A-NOOB commented 1 month ago

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

https://github.com/jfcherng-sublime/ST-my-settings/blob/0146cc3e1bef21794d74962a073b4ab89c629a67/Packages/User/LSP.sublime-settings#L51-L55

Before posting this, I installed taplo via scoop and Sublime Text throws NotADirectoryError after trying the same configuration as yours. So I turned to GitHub for help. So how did you install taplo?

jfcherng commented 1 month ago

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

jfcherng-sublime/ST-my-settings@0146cc3/Packages/User/LSP.sublime-settings#L51-L55

Before posting this, I installed taplo via scoop and Sublime Text throws NotADirectoryError after trying the same configuration as yours. So I turned to GitHub for help. So how did you install taplo?

I just download the exe file (e.g., Linux from https://github.com/tamasfe/taplo/releases/download/0.9.3/taplo-full-linux-x86_64.gz and Windows from https://github.com/tamasfe/taplo/releases/download/0.9.3/taplo-full-windows-x86_64.zip ) and make it foundable via PATH env.

Sublime Text throws NotADirectoryError

I can't figure out why a NotADirectoryError under any circumstance. A screenshot or full trackback message may help.

I-AM-A-NOOB commented 1 month ago

image image I think it might caused by the unusual pattern which used by scoop to install apps. however executing taplo lsp stdio in the terminal can successfuly start the process.