RFC: Add solargraph gem to developer environments for code completion and syntax highlighting

Context and Problem Statement

Katello development environments do not ship with an easy option for code completion and syntax highlighting.

Proposal

Add solargraph ruby gem as a dev dependency to Katello with support of solargraph config files to make intellisense easily supported in the Katello project. This would only be added to the Katello developer environment only and would not effect anything user facing. Note that for devs that still do not want solargraph enabled it can be disabled at a project level for themselves.

I have provided an example of how solargraph behaves in VSCode.

Alternative Designs

We could possibly make solargraph opt-in vs a dev dependency.

3 Likes

This seems like a great quality-of-life add. If we ever get around to adding yard documentation to katello methods, having docs auto-populate on highlight would be very nice.

2 Likes

In Foreman we load all Bundler files:

We then also have a .gitignore line:

So you can already apply this locally:

echo "gem 'solargraph'" > bundler.d/solargraph.local.rb

s/katello //
Because I’d love to have that more. In my experience it forces people to really think about what their method does, which inputs & outputs it has, etc.

Is there a reason for picking solargraph over ruby-lsp these days?