-
Notifications
You must be signed in to change notification settings - Fork 102
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
Java find references don't find references #184
Comments
It seems that content of eclim find buffer don't have anything to do with what was actually sent. Content is always the same https://github.com/senny/emacs-eclim/blob/master/eclim.el#L379 |
It's working for me when I have point on any text. |
Lucky guy! If the situation occur then I will try to reproduce it in my test project. I have prepared test project but I'm looking for when it's failing. If possible do not close this issue yet as I'm sure that it's failing |
I found the problem... consider this project:
instead returning I will clean workspace and reimport project. Also I will search for similar issue in eclim issues |
Reimport did the trick. Closing cause it doesn't sound like an |
You're a fireball of activity! 🔥 |
I've experienced the same issue, it starts since my last updates of packages.
I have icon as the parent project, and libicon is one of the sub-project. |
I've been experiencing some similar problems from time to time but I can't seem to find any pattern. @liujoey can you describe how exactly your project looks like? How do you import it? I've got concerns about multimodule maven project with parent being simple |
It was working last week. Then I did Emacs package update earlier this week, don't remember what's the version I was using previously. I don't think it's anything wrong with Eclim. I've no problem to jump to declaration when using Vim eclim plugin. And from the command line, the eclim command result looks also good.
It's just that the updated emacs-eclim can't jump to the file, I guess. |
I tested (defun eclim-java-find-declaration ()
"Find and display the declaration of the java identifier at point."
(interactive)
(let ((i (eclim--java-identifier-at-point t)))
(eclim/with-results hits ("java_search" "-n" "-f" ("-o" (car i)) ("-l" (length (cdr i))) ("-x" "declaration"))
(eclim--find-display-results (cdr i) hits t)))) When I run command:
I got according to the eclim document, there's no |
I think eclim documentation might be outdated. Look here. https://github.com/ervandew/eclim/blob/master/org.eclim.jdt/java/org/eclim/plugin/jdt/command/search/SearchCommand.java#L79-L92 |
When calling
eclim-java-find-references
I get buffer with this content:and as you can see zero results. Making the same call from command-line:
Obviously the call is wrong cause even looking at the function definition I see that the call itself should at least have
-x references
somewhere. Calling it from cli like this:returns plenty of results
The text was updated successfully, but these errors were encountered: