{"action":"created","issue":{"url":"https://api.github.com/repos/tkf/emacs-jedi/issues/242","labels_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/242/comments","events_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/242/events","html_url":"https://github.com/tkf/emacs-jedi/issues/242","id":98984257,"number":242,"title":"Go to definition doesn't work for variables in function argument","user":{"login":"sollidsnake","id":1778350,"avatar_url":"https://avatars.githubusercontent.com/u/1778350?v=3","gravatar_id":"","url":"https://api.github.com/users/sollidsnake","html_url":"https://github.com/sollidsnake","followers_url":"https://api.github.com/users/sollidsnake/followers","following_url":"https://api.github.com/users/sollidsnake/following{/other_user}","gists_url":"https://api.github.com/users/sollidsnake/gists{/gist_id}","starred_url":"https://api.github.com/users/sollidsnake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sollidsnake/subscriptions","organizations_url":"https://api.github.com/users/sollidsnake/orgs","repos_url":"https://api.github.com/users/sollidsnake/repos","events_url":"https://api.github.com/users/sollidsnake/events{/privacy}","received_events_url":"https://api.github.com/users/sollidsnake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T14:31:34Z","updated_at":"2015-08-07T08:46:51Z","closed_at":null,"body":"When I try to use `jedi:goto-definition` for a variable passed as a function argument, I get definition not found. I recorded I gif showing this issue:\r\n\r\n![gifrecord_2015-08-04_112428](https://cloud.githubusercontent.com/assets/1778350/9063088/4ebdd830-3a9c-11e5-82ad-c15e519a1565.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/tkf/emacs-jedi/issues/comments/128643449","html_url":"https://github.com/tkf/emacs-jedi/issues/242#issuecomment-128643449","issue_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/242","id":128643449,"user":{"login":"syohex","id":554281,"avatar_url":"https://avatars.githubusercontent.com/u/554281?v=3","gravatar_id":"","url":"https://api.github.com/users/syohex","html_url":"https://github.com/syohex","followers_url":"https://api.github.com/users/syohex/followers","following_url":"https://api.github.com/users/syohex/following{/other_user}","gists_url":"https://api.github.com/users/syohex/gists{/gist_id}","starred_url":"https://api.github.com/users/syohex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syohex/subscriptions","organizations_url":"https://api.github.com/users/syohex/orgs","repos_url":"https://api.github.com/users/syohex/repos","events_url":"https://api.github.com/users/syohex/events{/privacy}","received_events_url":"https://api.github.com/users/syohex/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T08:46:51Z","updated_at":"2015-08-07T08:46:51Z","body":"I suppose it is jedi issue, not emacs-jedi.\r\n\r\n```\r\nIn [1]: import jedi\r\n\r\nIn [2]: source = '''test_var = 'hello'\r\n   ...: \r\n   ...: test_var\r\n   ...: \r\n   ...: print(test_var)\r\n   ...: '''\r\n\r\nIn [3]: script = jedi.Script(source, 5, 7, '')\r\n\r\nIn [4]: defs = script.goto_assignments()\r\n\r\nIn [5]: len(defs)\r\nOut[5]: 0\r\n```\r\n\r\nHowever it works if I pass another argument to print function.\r\n\r\n```\r\nIn [1]: import jedi\r\n\r\nIn [2]: source = '''test_var = 'hello'\r\n   ...: \r\n   ...: test_var\r\n   ...: \r\n   ...: print(test_var, 1)\r\n   ...: '''\r\n\r\nIn [3]: script = jedi.Script(source, 5, 7, '')\r\n\r\nIn [4]: defs = script.goto_assignments()\r\n\r\nIn [5]: [defs[0].line, defs[0].column]\r\nOut[5]: [1, 0]\r\n```"}}