castwide / solargraph

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

Feature request: Inlined bundler support #623

Open kamil-gwozdz opened 1 year ago

kamil-gwozdz commented 1 year ago

Currently, solargraph only indexes gems installed with a Gemfile. It would be very helpful to also support gems installed with inlined bundler.

castwide commented 1 year ago

This is a tricky feature, because it's very likely to require running application code, which I try to avoid as much as possible. Right now, the exceptions are Gemfile and .gemspec files. Solargraph sometimes evaluates them to find dependencies. I'm open to other options, but I'm trying to limit features that run arbitrary code as much as possible.

It might be possible to introduce functionality that parses the output of gemfile blocks, but it should probably be a plugin, not a core feature.