{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-vim/issues/252","repository_url":"https://api.github.com/repos/ensime/ensime-vim","labels_url":"https://api.github.com/repos/ensime/ensime-vim/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-vim/issues/252/comments","events_url":"https://api.github.com/repos/ensime/ensime-vim/issues/252/events","html_url":"https://github.com/ensime/ensime-vim/pull/252","id":152590825,"number":252,"title":"Add default for Package Inspector","user":{"login":"ChrisCoffey","id":5373301,"avatar_url":"https://avatars.githubusercontent.com/u/5373301?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisCoffey","html_url":"https://github.com/ChrisCoffey","followers_url":"https://api.github.com/users/ChrisCoffey/followers","following_url":"https://api.github.com/users/ChrisCoffey/following{/other_user}","gists_url":"https://api.github.com/users/ChrisCoffey/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisCoffey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisCoffey/subscriptions","organizations_url":"https://api.github.com/users/ChrisCoffey/orgs","repos_url":"https://api.github.com/users/ChrisCoffey/repos","events_url":"https://api.github.com/users/ChrisCoffey/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisCoffey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ensime/ensime-vim/labels/needs%20review","name":"needs review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-02T16:35:33Z","updated_at":"2016-05-02T17:43:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ensime/ensime-vim/pulls/252","html_url":"https://github.com/ensime/ensime-vim/pull/252","diff_url":"https://github.com/ensime/ensime-vim/pull/252.diff","patch_url":"https://github.com/ensime/ensime-vim/pull/252.patch"},"body":"This is an imperfect parser that extracts the current package name from a Scala or Java file, as well as the plumbing to use it for the package inspector.\r\n\r\nPreviously, we were requiring users to type the FQN they wanted to explore. Now simply running `EnShowPackage` will explore the current package. Hopefully this is a big improvement in usability.\r\n\r\nAddresses #233 "},"comment":{"url":"https://api.github.com/repos/ensime/ensime-vim/issues/comments/216306778","html_url":"https://github.com/ensime/ensime-vim/pull/252#issuecomment-216306778","issue_url":"https://api.github.com/repos/ensime/ensime-vim/issues/252","id":216306778,"user":{"login":"yyadavalli","id":5590207,"avatar_url":"https://avatars.githubusercontent.com/u/5590207?v=3","gravatar_id":"","url":"https://api.github.com/users/yyadavalli","html_url":"https://github.com/yyadavalli","followers_url":"https://api.github.com/users/yyadavalli/followers","following_url":"https://api.github.com/users/yyadavalli/following{/other_user}","gists_url":"https://api.github.com/users/yyadavalli/gists{/gist_id}","starred_url":"https://api.github.com/users/yyadavalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyadavalli/subscriptions","organizations_url":"https://api.github.com/users/yyadavalli/orgs","repos_url":"https://api.github.com/users/yyadavalli/repos","events_url":"https://api.github.com/users/yyadavalli/events{/privacy}","received_events_url":"https://api.github.com/users/yyadavalli/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T17:43:44Z","updated_at":"2016-05-02T17:43:44Z","body":"Please correct if I'm wrong, this parser works for package declaration at file level like `package alpah.beta` but not for scoped packages\r\n\r\n```\r\npackage alpha {\r\n\r\n   package beta {\r\n       // code or currrent cursor\r\n   }\r\n}\r\n```\r\nOne way to find such packages would be to parse upwards from current cursor position for the first occurrence of `package` and get the name from there.\r\nAgain this may be unnecessarily complicating a nice and simple implementation"}}