Linkify Ruby code references in terminal output
@alexcrocha is already working on this.
Since Mar 30, 2026.
Assessment
This issue has not been assessed yet.
Description
I have checked that this feature is not already implemented
- This feature does not exist
Use case
There are several common forms of references to Ruby code that might show up in the terminal, like:
# Default `Kernel#inspect` format
#<A::B::C:0x0000000123009050 @a=1>
/Users/alex/project/example.rb:12:in 'Baz#c': unhandled exception: NotImplementedError (NotImplementedError)
from /Users/alex/project/example.rb:8:in 'Bar#b'
from /Users/alex/project/example.rb:4:in 'Foo#a'
from /Users/alex/project/example.rb:15:in '<main>'
The file paths and line numbers are clickable, but not any of the Ruby code references.
Description
It would be great if RubyLSP would identify that A::B::C as a constant reference, Baz#c is a method in Baz, NotImplementedError is a class, etc., and let you go-to-def by command-clicking on these.
Implementation
It looks like TerminalLinkProvider API does exactly this.
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/ruby-lsp
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help-wanted pinned
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug pinned
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Shopify/ruby-lsp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheOdinProject/curriculum#31417 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
glossarist/glossarist-ruby#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·