{"action":"created","issue":{"url":"https://api.github.com/repos/senny/emacs-eclim/issues/250","repository_url":"https://api.github.com/repos/senny/emacs-eclim","labels_url":"https://api.github.com/repos/senny/emacs-eclim/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/senny/emacs-eclim/issues/250/comments","events_url":"https://api.github.com/repos/senny/emacs-eclim/issues/250/events","html_url":"https://github.com/senny/emacs-eclim/issues/250","id":108535112,"number":250,"title":"eclim-java-find-type ignores files in jars","user":{"login":"gdanov","id":957113,"avatar_url":"https://avatars.githubusercontent.com/u/957113?v=3","gravatar_id":"","url":"https://api.github.com/users/gdanov","html_url":"https://github.com/gdanov","followers_url":"https://api.github.com/users/gdanov/followers","following_url":"https://api.github.com/users/gdanov/following{/other_user}","gists_url":"https://api.github.com/users/gdanov/gists{/gist_id}","starred_url":"https://api.github.com/users/gdanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdanov/subscriptions","organizations_url":"https://api.github.com/users/gdanov/orgs","repos_url":"https://api.github.com/users/gdanov/repos","events_url":"https://api.github.com/users/gdanov/events{/privacy}","received_events_url":"https://api.github.com/users/gdanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-27T13:33:32Z","updated_at":"2016-03-02T20:27:19Z","closed_at":null,"body":"I have java project where the source codes for external libs (incl. the jdk) are in jars. When I run the eclimd command that eclim-emacs dumps in the terminal I get result, but it's filtered out from what I can see in the source code. \r\nDetails:\r\n\r\nthe terminal command\r\n```\r\neclim -command java_search -p Integer -t type -x declarations -s workspace -i ''\r\n```\r\nresult\r\n```\r\n[{\"filename\":\"jar:file:///Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Classes/classes.jar!java/lang/Integer.class\",\"offset\":-1,\"length\":0,\"line\":1,\"column\":1,\"message\":\"java.lang.Integer\"},{\"filename\":\"zip:///Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/src.zip!/java/lang/Integer.java\",\"offset\":1149,\"length\":7,\"line\":52,\"column\":20,\"message\":\"java.lang.Integer\"}]\r\n```\r\n\r\neclim grep view pops-up and shows empty result. Same also with a class from another lib where the jar contains the .class as well as the .java files.\r\nI suspect that this is where these results are filtered out: https://github.com/senny/emacs-eclim/blob/master/eclim.el#L371\r\n```\r\n(defun eclim--find-display-results (pattern results &optional open-single-file)\r\n  (let ((results (remove-if (lambda (result) (string-match (rx bol (or \"jar\" \"zip\") \":\") (assoc-default 'filename result))) results)))\r\n```\r\nI guess there is good reason for that. I am interested to understand how to set-up my project so that emacs-eclim would be able to display these results"},"comment":{"url":"https://api.github.com/repos/senny/emacs-eclim/issues/comments/191414419","html_url":"https://github.com/senny/emacs-eclim/issues/250#issuecomment-191414419","issue_url":"https://api.github.com/repos/senny/emacs-eclim/issues/250","id":191414419,"user":{"login":"JordanFaust","id":1653499,"avatar_url":"https://avatars.githubusercontent.com/u/1653499?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanFaust","html_url":"https://github.com/JordanFaust","followers_url":"https://api.github.com/users/JordanFaust/followers","following_url":"https://api.github.com/users/JordanFaust/following{/other_user}","gists_url":"https://api.github.com/users/JordanFaust/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanFaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanFaust/subscriptions","organizations_url":"https://api.github.com/users/JordanFaust/orgs","repos_url":"https://api.github.com/users/JordanFaust/repos","events_url":"https://api.github.com/users/JordanFaust/events{/privacy}","received_events_url":"https://api.github.com/users/JordanFaust/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T20:27:19Z","updated_at":"2016-03-02T20:27:19Z","body":"Eclim already provides an API for reading from a archive files: https://github.com/ervandew/eclim/blob/2.5.0/org.eclim.core/java/org/eclim/plugin/core/command/archive/ArchiveReadCommand.java\r\n\r\nThis command will create a temporary file that contains the contents of the decompiled java file just as you would see when using eclipse to \"goto declaration\"."}}