-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Method not found' for private methods when using enh-ruby-mode #47
Comments
Works for me. Could you give an example? Are you trying to jump to a private method in a different class? |
Nope, private method in the same class. I am in the process of creating a sample rails project and testing it in a simple setting. |
When closing issues, you might want to leave a mention of what your actual problem was, or what made you think there was a problem. |
Sorry, I am evaluating another IDE for a month now, so I won't have time to follow up on this but the problem still exists for me. I didn't want to keep the ticket open indefinitely. My bad. |
Ah no, it's a good enough explanation. Please only reopen this when you have more details. Good luck with that other editor. |
Thank you for being supportive :). People like you and bbatsov make great packages for Emacs |
Hi, I'm seeing the same behavior. Jumping to public methods works fine. The following does not (rails 4.2.5, ruby 2.3.0): class TestModel < ActiveRecord::Base
def baz
foo # M-. here properly takes us to `foo`.
end
def foo
bar # M-. says "Method not found"
end
private # If I remove this line and C-c C-k we can find `bar`.
def bar # M-. here even says "Method not found"
'hello world'
end
end robe version:
|
@ledbettj Hi! This works fine for me. I've just tried it in a new rails 4.2.5/ruby 2.3.0 project. Have you tried pressing If not, please put the cursor inside the Which version of Emacs are you using? |
Thanks for the response!
Emacs Version:
Let me know if there's any other info that might be useful. |
Thanks. The result is wrong, it should be Do you by any chance have the "alternative" |
That was it -- I use enh-ruby-mode instead of the default |
Hmm, that's a surprise. I didn't expect it to be the source of the problem. I've filed an issue there. |
This might be fixed over in enh-ruby-mode... Try against latest. |
It's improved, and it'll probably fix the example by @ledbettj. But see my comment in the linked issue. I've pushed a change to robe now that will allow it to use |
Hi,
robe-jump
works for for jumping to methods on other classes but when I do it on a private method, it shows all Modules which may have the method but not the private method?The text was updated successfully, but these errors were encountered: