1/28/2024 0 Comments Rubymine sorbetyou required foo, but that's not in your Gemfile/.gemspec) I'd also love some more diagnostics things that you may get from flog or flay or rubocop (although I think integrating with rubocop would be ideal, given its influence on the ecosystem) or rails_best_practices (prior to rubocop, I actually tried making my own linter, tailor, but rubocop came along and was a million times better). convert method to function (class method).across your project.Īt this point, I'll be happy if it provides basic LSP functionality (completion, goto-definition, etc), but I'd love to follow some of what rust-analyzer offers via their code actions things like: I started in the spring, made a bunch of headway, then backtracked to redo the internals to make it easier to handle monkeypatching, overriding/redefining of methods, etc. I'm more productive in Rust than with Ruby at this point, despite doing Ruby full time for 15 years, plus I really really don't want to have to deal with a slow LSP-that was the whole impetus for this project. I realize this might not be for everyone, but I'm writing it in Rust using Lib-ruby-parser and tower-lsp: two existing libraries that handle a bunch of the heavy lifting for me. and kinda got fed up and decided to see if I could alleviate my issues by writing my own LSP for ruby. but I've been using solargraph for a couple years (off and on because it's next to useless at times, due to performance) and over the past year or so used steep to aid in some of that when I have projects using RBS. Well, I know this doesn't really help you today. What are people's experiences with these tools? Which one would you recommend? Feels the most technically sound, though still early in development. Uses tree-sitter to parse and analyze code. Seems to be abandoned in an incomplete state, with only minor bug fixes for years. Probably not the best choice right now, but seems promising in the future. Seems immature right now it only supports a few queries and does so in janky ways. Digging through issues indicates it's meant to complement Sorbet's language server. Not sure what subset of LSP features it supports either.įairly new project, started in June. ![]() No idea if it supports language and library documentation there's no real docs for its LSP mode other than "here, have a vscode extension", and digging through the codebase is. I don't know if this is usable without first adding type annotations to your code. Created before Ruby's signature format and uses its own messy eDSL for type annotations. Doesn't have any docs for versions of ruby past 2.7.Ī type checker. ![]() Language docs are shipped as "cores" you imperatively download that float around in your home directory this is messy and prone to failure. Seems to be the most mature/developed one. I've been trying to set up Ruby LSP integration for my text editor (not VSCode), and I'm currently looking for a language server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |