Skip to content

Sorbet support #896

@Nitrodist

Description

@Nitrodist

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions