Skip to content
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

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

Open
I-AM-A-NOOB opened this issue Aug 13, 2024 · 4 comments
Open

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

I-AM-A-NOOB opened this issue Aug 13, 2024 · 4 comments

Comments

@I-AM-A-NOOB
Copy link

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

  • taplo: taplo is a TOML toolkit written in Rust that includes a parser, formatter, and analyzer. It provides comprehensive support for the TOML 1.0.0 specification and is actively maintained.
@jfcherng
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

jfcherng commented Aug 13, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants