{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/issues/705","repository_url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls","labels_url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/issues/705/comments","events_url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/issues/705/events","html_url":"https://github.com/eclipse/eclipse.jdt.ls/issues/705","id":334679900,"node_id":"MDU6SXNzdWUzMzQ2Nzk5MDA=","number":705,"title":"Invalid response for textDocument/definition","user":{"login":"Kronuz","id":56894,"node_id":"MDQ6VXNlcjU2ODk0","avatar_url":"https://avatars1.githubusercontent.com/u/56894?v=4","gravatar_id":"","url":"https://api.github.com/users/Kronuz","html_url":"https://github.com/Kronuz","followers_url":"https://api.github.com/users/Kronuz/followers","following_url":"https://api.github.com/users/Kronuz/following{/other_user}","gists_url":"https://api.github.com/users/Kronuz/gists{/gist_id}","starred_url":"https://api.github.com/users/Kronuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kronuz/subscriptions","organizations_url":"https://api.github.com/users/Kronuz/orgs","repos_url":"https://api.github.com/users/Kronuz/repos","events_url":"https://api.github.com/users/Kronuz/events{/privacy}","received_events_url":"https://api.github.com/users/Kronuz/received_events","type":"User","site_admin":false},"labels":[{"id":399138818,"node_id":"MDU6TGFiZWwzOTkxMzg4MTg=","url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/labels/bug","name":"bug","color":"ee0701","default":true},{"id":961797978,"node_id":"MDU6TGFiZWw5NjE3OTc5Nzg=","url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/labels/protocol%20violation","name":"protocol violation","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"fbricon","id":148698,"node_id":"MDQ6VXNlcjE0ODY5OA==","avatar_url":"https://avatars3.githubusercontent.com/u/148698?v=4","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"assignees":[{"login":"fbricon","id":148698,"node_id":"MDQ6VXNlcjE0ODY5OA==","avatar_url":"https://avatars3.githubusercontent.com/u/148698?v=4","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/milestones/39","html_url":"https://github.com/eclipse/eclipse.jdt.ls/milestone/39","labels_url":"https://api.github.com/repos/eclipse/eclipse.jdt.ls/milestones/39/labels","id":3433214,"node_id":"MDk6TWlsZXN0b25lMzQzMzIxNA==","number":39,"title":"End June 2018","description":null,"creator":{"login":"fbricon","id":148698,"node_id":"MDQ6VXNlcjE0ODY5OA==","avatar_url":"https://avatars3.githubusercontent.com/u/148698?v=4","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2018-06-18T18:32:19Z","updated_at":"2018-06-22T21:11:52Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-06-21T22:28:56Z","updated_at":"2018-06-22T21:11:52Z","closed_at":"2018-06-22T21:11:52Z","author_association":"NONE","body":"Response to `textDocument/definition` should result in `Location` | `Location[]` | `null` (https://microsoft.github.io/language-server-protocol/specification#goto-definition-request-leftwards_arrow_with_hook), and `Location` is defined as (https://microsoft.github.io/language-server-protocol/specification#location):\r\n\r\n```typescript\r\ninterface Location {\r\n\turi: DocumentUri;\r\n\trange: Range;\r\n}\r\n```\r\n\r\nSo `uri` is a mandatory `DocumentUri`; however, this is what I'm sending and receiving from the server:\r\n\r\n```typescript\r\nLSP:  >>> textDocument/definition\r\nLSP:  --> {\r\n            'textDocument': {\r\n            \t'uri': 'file:///Users/kronuz/filename.java'\r\n            },\r\n            'position': {\r\n              'line': 167,\r\n              'character': 42\r\n            }\r\n          }\r\nLSP:  <-- [\r\n            {\r\n              'range': {}\r\n            }\r\n          ]\r\n```\r\n\r\nSo `[{'range': {}}]` is not a valid response.\r\n"}}
{"actor":{"display_login":"fbricon"}}