{"action":"created","comment":{"url":"https://api.github.com/repos/ensime/ensime-server/pulls/comments/60380383","id":60380383,"diff_hunk":"@@ -209,7 +210,7 @@ trait JavaCompletion extends Helpers with SLF4JLogging {\n     caseSense: Boolean\n   ): List[CompletionInfo] = {\n \n-    typeElement(info, target).map {\n+    typeElement(info, target).toList.flatMap {","path":"core/src/main/scala/org/ensime/core/javac/JavaCompletion.scala","position":null,"original_position":13,"commit_id":"33b91dcdd239dcb28a19b9a822a4c0d75345916f","original_commit_id":"402936222af7f1dea0c524d2599288e4160bb58a","user":{"login":"mwielocha","id":2657177,"avatar_url":"https://avatars.githubusercontent.com/u/2657177?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielocha","html_url":"https://github.com/mwielocha","followers_url":"https://api.github.com/users/mwielocha/followers","following_url":"https://api.github.com/users/mwielocha/following{/other_user}","gists_url":"https://api.github.com/users/mwielocha/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielocha/subscriptions","organizations_url":"https://api.github.com/users/mwielocha/orgs","repos_url":"https://api.github.com/users/mwielocha/repos","events_url":"https://api.github.com/users/mwielocha/events{/privacy}","received_events_url":"https://api.github.com/users/mwielocha/received_events","type":"User","site_admin":false},"body":"Not a gotcha, I was honestly wondering how can this be done nicely, but unfortunately this only works one way: `List(1).flatMap(x => Option(x))`, either way I'm pretty sure that `Option.toList` is super-cheap, so shouldn't really be a problem here.","created_at":"2016-04-20T09:55:21Z","updated_at":"2016-04-20T09:55:21Z","html_url":"https://github.com/ensime/ensime-server/pull/1426#discussion_r60380383","pull_request_url":"https://api.github.com/repos/ensime/ensime-server/pulls/1426","_links":{"self":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/comments/60380383"},"html":{"href":"https://github.com/ensime/ensime-server/pull/1426#discussion_r60380383"},"pull_request":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/1426"}}},"pull_request":{"url":"https://api.github.com/repos/ensime/ensime-server/pulls/1426","id":67104672,"html_url":"https://github.com/ensime/ensime-server/pull/1426","diff_url":"https://github.com/ensime/ensime-server/pull/1426.diff","patch_url":"https://github.com/ensime/ensime-server/pull/1426.patch","issue_url":"https://api.github.com/repos/ensime/ensime-server/issues/1426","number":1426,"state":"open","locked":false,"title":"filter out not accessible members","user":{"login":"mwielocha","id":2657177,"avatar_url":"https://avatars.githubusercontent.com/u/2657177?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielocha","html_url":"https://github.com/mwielocha","followers_url":"https://api.github.com/users/mwielocha/followers","following_url":"https://api.github.com/users/mwielocha/following{/other_user}","gists_url":"https://api.github.com/users/mwielocha/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielocha/subscriptions","organizations_url":"https://api.github.com/users/mwielocha/orgs","repos_url":"https://api.github.com/users/mwielocha/repos","events_url":"https://api.github.com/users/mwielocha/events{/privacy}","received_events_url":"https://api.github.com/users/mwielocha/received_events","type":"User","site_admin":false},"body":"Request for #1198 \r\nI have a version of this for both master and #1412 branch.\r\nWill merge when `no netbeans` gets approved.","created_at":"2016-04-19T23:05:29Z","updated_at":"2016-04-20T09:55:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fcdc8565f05babd48f52dd2d2b817d09f88f716","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ensime/ensime-server/pulls/1426/commits","review_comments_url":"https://api.github.com/repos/ensime/ensime-server/pulls/1426/comments","review_comment_url":"https://api.github.com/repos/ensime/ensime-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ensime/ensime-server/issues/1426/comments","statuses_url":"https://api.github.com/repos/ensime/ensime-server/statuses/33b91dcdd239dcb28a19b9a822a4c0d75345916f","head":{"label":"mwielocha:filte_accessible_no_javacoptions","ref":"filte_accessible_no_javacoptions","sha":"33b91dcdd239dcb28a19b9a822a4c0d75345916f","user":{"login":"mwielocha","id":2657177,"avatar_url":"https://avatars.githubusercontent.com/u/2657177?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielocha","html_url":"https://github.com/mwielocha","followers_url":"https://api.github.com/users/mwielocha/followers","following_url":"https://api.github.com/users/mwielocha/following{/other_user}","gists_url":"https://api.github.com/users/mwielocha/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielocha/subscriptions","organizations_url":"https://api.github.com/users/mwielocha/orgs","repos_url":"https://api.github.com/users/mwielocha/repos","events_url":"https://api.github.com/users/mwielocha/events{/privacy}","received_events_url":"https://api.github.com/users/mwielocha/received_events","type":"User","site_admin":false},"repo":{"id":55529981,"name":"ensime-server","full_name":"mwielocha/ensime-server","owner":{"login":"mwielocha","id":2657177,"avatar_url":"https://avatars.githubusercontent.com/u/2657177?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielocha","html_url":"https://github.com/mwielocha","followers_url":"https://api.github.com/users/mwielocha/followers","following_url":"https://api.github.com/users/mwielocha/following{/other_user}","gists_url":"https://api.github.com/users/mwielocha/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielocha/subscriptions","organizations_url":"https://api.github.com/users/mwielocha/orgs","repos_url":"https://api.github.com/users/mwielocha/repos","events_url":"https://api.github.com/users/mwielocha/events{/privacy}","received_events_url":"https://api.github.com/users/mwielocha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwielocha/ensime-server","description":"ENSIME JVM Process","fork":true,"url":"https://api.github.com/repos/mwielocha/ensime-server","forks_url":"https://api.github.com/repos/mwielocha/ensime-server/forks","keys_url":"https://api.github.com/repos/mwielocha/ensime-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwielocha/ensime-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwielocha/ensime-server/teams","hooks_url":"https://api.github.com/repos/mwielocha/ensime-server/hooks","issue_events_url":"https://api.github.com/repos/mwielocha/ensime-server/issues/events{/number}","events_url":"https://api.github.com/repos/mwielocha/ensime-server/events","assignees_url":"https://api.github.com/repos/mwielocha/ensime-server/assignees{/user}","branches_url":"https://api.github.com/repos/mwielocha/ensime-server/branches{/branch}","tags_url":"https://api.github.com/repos/mwielocha/ensime-server/tags","blobs_url":"https://api.github.com/repos/mwielocha/ensime-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwielocha/ensime-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwielocha/ensime-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwielocha/ensime-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwielocha/ensime-server/statuses/{sha}","languages_url":"https://api.github.com/repos/mwielocha/ensime-server/languages","stargazers_url":"https://api.github.com/repos/mwielocha/ensime-server/stargazers","contributors_url":"https://api.github.com/repos/mwielocha/ensime-server/contributors","subscribers_url":"https://api.github.com/repos/mwielocha/ensime-server/subscribers","subscription_url":"https://api.github.com/repos/mwielocha/ensime-server/subscription","commits_url":"https://api.github.com/repos/mwielocha/ensime-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwielocha/ensime-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwielocha/ensime-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwielocha/ensime-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwielocha/ensime-server/contents/{+path}","compare_url":"https://api.github.com/repos/mwielocha/ensime-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwielocha/ensime-server/merges","archive_url":"https://api.github.com/repos/mwielocha/ensime-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwielocha/ensime-server/downloads","issues_url":"https://api.github.com/repos/mwielocha/ensime-server/issues{/number}","pulls_url":"https://api.github.com/repos/mwielocha/ensime-server/pulls{/number}","milestones_url":"https://api.github.com/repos/mwielocha/ensime-server/milestones{/number}","notifications_url":"https://api.github.com/repos/mwielocha/ensime-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwielocha/ensime-server/labels{/name}","releases_url":"https://api.github.com/repos/mwielocha/ensime-server/releases{/id}","deployments_url":"https://api.github.com/repos/mwielocha/ensime-server/deployments","created_at":"2016-04-05T17:56:19Z","updated_at":"2016-04-05T17:56:20Z","pushed_at":"2016-04-20T09:10:10Z","git_url":"git://github.com/mwielocha/ensime-server.git","ssh_url":"git@github.com:mwielocha/ensime-server.git","clone_url":"https://github.com/mwielocha/ensime-server.git","svn_url":"https://github.com/mwielocha/ensime-server","homepage":"","size":6263,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ensime:master","ref":"master","sha":"31a57611f365ae87c750f553eef96c466a360dce","user":{"login":"ensime","id":5089042,"avatar_url":"https://avatars.githubusercontent.com/u/5089042?v=3","gravatar_id":"","url":"https://api.github.com/users/ensime","html_url":"https://github.com/ensime","followers_url":"https://api.github.com/users/ensime/followers","following_url":"https://api.github.com/users/ensime/following{/other_user}","gists_url":"https://api.github.com/users/ensime/gists{/gist_id}","starred_url":"https://api.github.com/users/ensime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensime/subscriptions","organizations_url":"https://api.github.com/users/ensime/orgs","repos_url":"https://api.github.com/users/ensime/repos","events_url":"https://api.github.com/users/ensime/events{/privacy}","received_events_url":"https://api.github.com/users/ensime/received_events","type":"Organization","site_admin":false},"repo":{"id":578384,"name":"ensime-server","full_name":"ensime/ensime-server","owner":{"login":"ensime","id":5089042,"avatar_url":"https://avatars.githubusercontent.com/u/5089042?v=3","gravatar_id":"","url":"https://api.github.com/users/ensime","html_url":"https://github.com/ensime","followers_url":"https://api.github.com/users/ensime/followers","following_url":"https://api.github.com/users/ensime/following{/other_user}","gists_url":"https://api.github.com/users/ensime/gists{/gist_id}","starred_url":"https://api.github.com/users/ensime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensime/subscriptions","organizations_url":"https://api.github.com/users/ensime/orgs","repos_url":"https://api.github.com/users/ensime/repos","events_url":"https://api.github.com/users/ensime/events{/privacy}","received_events_url":"https://api.github.com/users/ensime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ensime/ensime-server","description":"ENSIME JVM Process","fork":false,"url":"https://api.github.com/repos/ensime/ensime-server","forks_url":"https://api.github.com/repos/ensime/ensime-server/forks","keys_url":"https://api.github.com/repos/ensime/ensime-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ensime/ensime-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ensime/ensime-server/teams","hooks_url":"https://api.github.com/repos/ensime/ensime-server/hooks","issue_events_url":"https://api.github.com/repos/ensime/ensime-server/issues/events{/number}","events_url":"https://api.github.com/repos/ensime/ensime-server/events","assignees_url":"https://api.github.com/repos/ensime/ensime-server/assignees{/user}","branches_url":"https://api.github.com/repos/ensime/ensime-server/branches{/branch}","tags_url":"https://api.github.com/repos/ensime/ensime-server/tags","blobs_url":"https://api.github.com/repos/ensime/ensime-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ensime/ensime-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ensime/ensime-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ensime/ensime-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ensime/ensime-server/statuses/{sha}","languages_url":"https://api.github.com/repos/ensime/ensime-server/languages","stargazers_url":"https://api.github.com/repos/ensime/ensime-server/stargazers","contributors_url":"https://api.github.com/repos/ensime/ensime-server/contributors","subscribers_url":"https://api.github.com/repos/ensime/ensime-server/subscribers","subscription_url":"https://api.github.com/repos/ensime/ensime-server/subscription","commits_url":"https://api.github.com/repos/ensime/ensime-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ensime/ensime-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ensime/ensime-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ensime/ensime-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ensime/ensime-server/contents/{+path}","compare_url":"https://api.github.com/repos/ensime/ensime-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ensime/ensime-server/merges","archive_url":"https://api.github.com/repos/ensime/ensime-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ensime/ensime-server/downloads","issues_url":"https://api.github.com/repos/ensime/ensime-server/issues{/number}","pulls_url":"https://api.github.com/repos/ensime/ensime-server/pulls{/number}","milestones_url":"https://api.github.com/repos/ensime/ensime-server/milestones{/number}","notifications_url":"https://api.github.com/repos/ensime/ensime-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ensime/ensime-server/labels{/name}","releases_url":"https://api.github.com/repos/ensime/ensime-server/releases{/id}","deployments_url":"https://api.github.com/repos/ensime/ensime-server/deployments","created_at":"2010-03-25T00:57:54Z","updated_at":"2016-04-18T22:20:34Z","pushed_at":"2016-04-20T09:37:17Z","git_url":"git://github.com/ensime/ensime-server.git","ssh_url":"git@github.com:ensime/ensime-server.git","clone_url":"https://github.com/ensime/ensime-server.git","svn_url":"https://github.com/ensime/ensime-server","homepage":"","size":66844,"stargazers_count":986,"watchers_count":986,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":94,"forks":228,"open_issues":94,"watchers":986,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/1426"},"html":{"href":"https://github.com/ensime/ensime-server/pull/1426"},"issue":{"href":"https://api.github.com/repos/ensime/ensime-server/issues/1426"},"comments":{"href":"https://api.github.com/repos/ensime/ensime-server/issues/1426/comments"},"review_comments":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/1426/comments"},"review_comment":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ensime/ensime-server/pulls/1426/commits"},"statuses":{"href":"https://api.github.com/repos/ensime/ensime-server/statuses/33b91dcdd239dcb28a19b9a822a4c0d75345916f"}}}}