Remix.run Logo
vmware508 5 hours ago

I guess it is still useless in Ruby or Ruby on Rails. Standard "find the method declaration" or "used here" do not work in Ruby on Rails. Still, huge companies maintain that Ruby on Rails mess, where you cannot properly investigate, so you just guess and use the search and find option. Those codebases won't be replaced for a while, but good luck working on them. Such a headache!

TheRoque 5 hours ago | parent [-]

How come nobody came up with an LSP that can perform this, all this time ?

federicotdn 4 hours ago | parent | next [-]

I've developed a small tool[1] that has helped me for the same problem, but in Python. Basically just uses simple parsers to attempt to find a definition wherever is sensible. Adding a Ruby module should not be too difficult, but it would probably be trickier than Python to get some good enough results

[1] https://github.com/federicotdn/irk

esafak 4 hours ago | parent | prev | next [-]

https://shopify.github.io/ruby-lsp/rails-add-on#go-to-defini... ?

IshKebab 4 hours ago | parent | prev [-]

Because it's an unsolvable problem without static type annotations and as far as I'm aware Ruby doesn't have a good solution for those yet (or if they do nobody uses it).