castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.9k stars 156 forks source link

RBS Support #464

Open castwide opened 3 years ago

castwide commented 3 years ago

Integration of RBS into Solargraph is officially on the roadmap.

Features

Pros

Cons

Current progress can be previewed on the repo's rbs branch.

dlealmt commented 3 years ago

Do you have any plans to support generating RBS files from YARD docs?

Thanks for all the work. This gem is a huge help!

castwide commented 3 years ago

@dleal-mojotech Thanks!

If I do, it will probably be based on Sord.

wagenet commented 2 years ago

I've been using sord with a decent degree of success.

tmszcncl commented 2 years ago

Any update on rbs support? rbs is working really well on rubymine and I miss it in vscode :)

castwide commented 2 years ago

It's still in progress. I just updated the rbs branch with a few commits I hadn't pushed yet. I can't give an exact ETA yet, but certainly before the end of the year.

skull-squadron commented 2 years ago

steep seems to be the way things are going with rbs. I use RubyMine at home but work uses something resembling VSCode. I like the idea of rbs but I'm honestly wondering if there should've been a language break at 3 to support gradual typing like Crystal and Python.

castwide commented 1 year ago

The rbs branch is merged into master and will be released shortly. Some notes on the current version:

gwillcox-r7 commented 1 year ago

Any update on releasing a new cut of Solargraph with support for RBS or is this blocked on the go to definition point?

castwide commented 1 year ago

I plan to release a version with RBS support for core and stdlib first, then iterate support for gems and workspaces.

chalmagean commented 1 year ago

It looks like v0.49.0 prints the following message on solargraph bundle.

The `bundle` command is deprecated. Solargraph currently uses RBS instead.

There doesn't seem to be any info on what that means (or what to do about it). Is there any documentation available?

castwide commented 1 year ago

Running solargraph bundle should no longer be necessary. I left it as a noop to avoid breaking existing workflows.

For problems specific to Rails, try installing the solargraph-rails plugin first.

chalmagean commented 1 year ago

Gotcha. Thank you.

mnussbaum commented 11 months ago

Is it possible to update solargraph's RBS dependency to something in the RBS 3.x series? That would make packaging solargraph for arch linux, a rolling release distro, much easier. Thanks!