castwide / solargraph

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

RSPEC support #683

Open reeganviljoen opened 10 months ago

reeganviljoen commented 10 months ago

I know their is support for Rails with solargraph through the solargraph-rails plugin , is their a solargraph-rspec plugin or built in support I can use for rspec

castwide commented 8 months ago

There's an RSpec convention that currently ships with Solargraph, but it's far from complete. It's definitely a good candidate to become a separate extension.

reeganviljoen commented 8 months ago

@castwide how would that candidacy process work for solargraph

castwide commented 7 months ago

There's no official candidacy process. When I have time to work more on RSpec support, one of my first tasks would probably be to move it to its own extension. If someone else is interested in working on it, I'd be willing to assist.

lekemula commented 1 month ago

Hey @reeganviljoen @castwide I've got some good news for you here! After playing around for a bit I've been able to put some work and created an extension gem for RSpec, please check it out here: https://github.com/lekemula/solargraph-rspec.

It does not support all the possible use cases (as that would be humongous knowing the magic of RSpec) but hopefully, we'll get there one day!

Luckily after some iterations it ended up not needing any patches here, although I still think some of the initial changes there would be still beneficial. @castwide WDYT? I would also appreciate any feedback on the gem itself as I'm relatively a newbie in this domain. 🙏

Please give it a try and let me know how it works for you!

Cheers!