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

Sorbet support #896

Open
Nitrodist opened this issue Nov 26, 2022 · 3 comments
Open

Sorbet support #896

Nitrodist opened this issue Nov 26, 2022 · 3 comments

Comments

@Nitrodist
Copy link

Nitrodist commented Nov 26, 2022

Is there a way we can get sorbet support? I use vim + coc + srb command to typecheck my .rb files. I turned it on for .slim files as well and... well it threw me errors and then promptly refused to elaborate :)

Here's my CocOpenLog output:

2022-11-25T22:40:16.660 WARN (pid:7726) [handler-format] - Format provider not found for file:///Users/markcampbell/o/BusyPaws.app/app/views/business/admin/custom_report_fields/_form.html.slim

I don't necessarily expect you @minad to fix this, and I really appreciate your work (enjoy the $100 USD I donated) - perhaps there are some other interested parties out there that also want this kind of a feature implemented? I looked into it for a few minutes and I think I'm just going to go back to work for now haha. This feature sure would be nice though!

My lsp config in coc-settings.json if needed:

  "languageserver": {
    "sorbet": {
      "command": "srb",
      "args": [
        "tc",
        "--typed",
        "true",
        "--enable-all-experimental-lsp-features",
        "--lsp"
      ],
      "filetypes": ["ruby", "slim"],
      "rootPatterns": ["sorbet/config"],
      "initializationOptions": {},
      "settings": {}
    }
  }

Thanks!

@minad
Copy link
Member

minad commented Nov 26, 2022

Thanks! Sorbet is interesting. I may actually try this out. However I am an Emacs user. :)

@Nitrodist
Copy link
Author

Fear not, LSP support exists in emacs! https://emacs-lsp.github.io/lsp-mode/

@Nitrodist
Copy link
Author

rufo exists as well. they make a great pair!

https://github.com/ruby-formatter/rufo

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

No branches or pull requests

2 participants