ruby-lsp
solargraph
Our great sponsors
ruby-lsp | solargraph | |
---|---|---|
16 | 16 | |
1,283 | 1,846 | |
4.8% | - | |
9.9 | 7.4 | |
5 days ago | about 2 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ruby-lsp
-
RoR Debugbar
Some details from https://github.com/Shopify/ruby-lsp
> NOTE: starting with v0.7.0, it is no longer recommended to add the ruby-lsp to the bundle. The gem will generate a custom bundle in .ruby-lsp/Gemfile which is used to identify the versions of dependencies that should be used for the application (e.g.: the correct RuboCop version).
- Unveiling the big leap in Ruby 3.3's IRB
- I Love Ruby
-
RubyConf 2023 Recap
After lunch, I parked at the Ruby LSP table. I worked with Julie and Drew on HEREDOC endings. We also found an issue that we spent some time digging into, but ran out of time before we had a solution. It was fun spelunking through the code with friends. Ufuk joined us in looking at the cursor indentation issue. His sage wisdom helped us navigate through an unfamiliar codebase.
- Does anyone here use Solargraph with Rails?
-
VSCode now has documentation for Ruby
Thanks for the feedback. Added an issue for you: https://github.com/Shopify/ruby-lsp/issues/594
-
What extensions do you use for Ruby / Rails development on VS Code?
Links: Ruby-lsp , vscode addon
-
Unlock the Potential of VS Code for Ruby Programming
Thanks. You might like to watch this RFC PR https://github.com/Shopify/ruby-lsp/pull/429 (from me) with the proof of concept implementation of indexing and a very simplistic go to definition implementation, which is now being productionized properly. The indexing logic has moved into Syntax Tree and now we have access to a uniform API in Ruby LSP.
- ruby-lsp: An opinionated language server for Ruby
-
vscode suggestions
Ruby LSP and its associated extension: https://github.com/Shopify/ruby-lsp
solargraph
-
A few words on Ruby's type annotations state
My favorite typing solution so far in ruby is Solargraph https://solargraph.org/.
-
Nice Ruby IDEs
Solagraph: https://solargraph.org
-
Using SyntaxSuggest with Solargraph LSP!
Yay! For those who don’t know solargraph provides a language server protocol (LSP) for Ruby so that your IDE (like vscode) can know more about the code you’re writing https://solargraph.org/.
-
Ruby Delights Built into the Language: No Gems Required
If you're looking for IDE-level language assistance, I can't help you, but since you mentioned nvim: I use regular vim with CoC / Conquer of Completion (vim plugin; LSP server, may not strictly be necessary for nvim), Solargraph (Ruby Gem; language server), and Rubocop (also a Gem) for linting. I previously/still use ALE (vim plugin; Asynchronous Lint Engine) because I haven't gotten CoC+Solargraph to play nice with Rubocop, probably due to something silly.
https://github.com/neoclide/coc.nvim
https://github.com/dense-analysis/ale
My impression with all of this running under MacVim... it's plenty responsive. It can take a while for Solargraph to index everything on startup if you're working in a big project; once it loads, it's snappy. (There's probably a way to cache that startup scan.)
-
I need help with lsp-mode setup
I am trying to use lsp-mode for ruby via solargraph and for Rails era templates using web-mode via lsp-tailwindcss and both seems to kinda sorta work but neither one is really giving me all the features that I see that others have.
-
State of the Ruby language server (LSP) ecosystem / looking for suggestions
https://github.com/castwide/solargraph Seems to be the most mature/developed one. Slow on my system, bad documentation. Language docs are shipped as "cores" you imperatively download that float around in your home directory; this is messy and prone to failure. Doesn't have any docs for versions of ruby past 2.7.
-
Trouble With Solargraph Completions
I have recently installed Solargraph and can see that when I open a Ruby file that the LSP is attached to my buffer via `LspInfo`. However whenever I am trying to do some very basic completions or see what kind of methods are available for an object, literally nothing happens. What I am aiming for is something like on the official Solargraph website: https://solargraph.org/
-
Linting and Auto-formatting Ruby Code With RuboCop
If you use Vim or Neovim, you can display RuboCop's diagnostics through coc.nvim. You need to install the Solargraph language server (gem install solargraph), followed by the coc-solargraph extension (:CocInstall coc-solargraph). Afterwards, configure your coc-settings.json file as shown below:
-
anyone here using neovim for ruby on rails projects?
The builtin LSP works well with solargraph to provide autocompletion.
-
Sorbet: Stripe's Type Checker for Ruby
Sorbet and/or RBS seems like they may be the future given how popular typescript is with JS programmers these days. There are some other projects that assist programmers without relying on formal type definitions in the source or shadow typing files:
Solargraph combines inference and insight from YARD docs (standard for many gems, plus Castwide has written more YARD for the standard library) to make some pretty good guesses. Crucially it has plugins that add the insights from popular gems with static analysis (e.g. reek, rubocop). I maintain solargraph-rails, which parses your Ruby to make guesses about (surprise) Rails.
The typeprof gem can help IDE plugins make typing guesses based on your tests. This project is interesting to me because it's going into Ruby 3.1 so I think it reflects awareness from the core ruby team that many programmers are not ready to add types to their code.
solargraph: https://github.com/castwide/solargraph
What are some alternatives?
ruby_language_server - Language Server implementation in Ruby for Ruby. Development happens on the develop branch. Production is master.
sorbet - A fast, powerful type checker designed for Ruby
RailsAutoCompleteHelper - Autocomplete helper for Ruby on Rails projects that pulls data from model files
steep - Static type checker for Ruby
turbo-android - Android framework for making Turbo native apps
vscode-ruby - Provides Ruby language and debugging support for Visual Studio Code
lib-ruby-parser - Ruby parser written in Rust
Roda - Routing Tree Web Toolkit
orbacle - Program allowing for smart jump-to-definitions, autocompletion, constant renaming and more.
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
terramena - Use colmena to provision nixos hosts created by Terraform
vscode-ruby-debug - A Ruby debugger.