{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeText/CTags/issues/313","repository_url":"https://api.github.com/repos/SublimeText/CTags","labels_url":"https://api.github.com/repos/SublimeText/CTags/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/SublimeText/CTags/issues/313/comments","events_url":"https://api.github.com/repos/SublimeText/CTags/issues/313/events","html_url":"https://github.com/SublimeText/CTags/issues/313","id":166962165,"number":313,"title":"ST3 Build 3114 incompatible with ctag \"Navigate to Definition\" functionality","user":{"login":"lizhouli","id":3023980,"avatar_url":"https://avatars.githubusercontent.com/u/3023980?v=3","gravatar_id":"","url":"https://api.github.com/users/lizhouli","html_url":"https://github.com/lizhouli","followers_url":"https://api.github.com/users/lizhouli/followers","following_url":"https://api.github.com/users/lizhouli/following{/other_user}","gists_url":"https://api.github.com/users/lizhouli/gists{/gist_id}","starred_url":"https://api.github.com/users/lizhouli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizhouli/subscriptions","organizations_url":"https://api.github.com/users/lizhouli/orgs","repos_url":"https://api.github.com/users/lizhouli/repos","events_url":"https://api.github.com/users/lizhouli/events{/privacy}","received_events_url":"https://api.github.com/users/lizhouli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T03:12:08Z","updated_at":"2016-11-01T04:48:01Z","closed_at":null,"body":"When upgrading to 3114, \"Navigate to Definition\" functionality in ctag doesn't work again.\n\nIt should jump to the function definition normally which works in Build 3103, but now it depends on whether the file the function definition is in is opened,\n- when the file is already opened, it will jump to the function definition.\n- when the file is not opened, it will open the file and jump to the beginning of the file.\n\nAs a workaround, I have to roll back to Build 3103.\n"},"comment":{"url":"https://api.github.com/repos/SublimeText/CTags/issues/comments/257488050","html_url":"https://github.com/SublimeText/CTags/issues/313#issuecomment-257488050","issue_url":"https://api.github.com/repos/SublimeText/CTags/issues/313","id":257488050,"user":{"login":"mwean","id":732173,"avatar_url":"https://avatars.githubusercontent.com/u/732173?v=3","gravatar_id":"","url":"https://api.github.com/users/mwean","html_url":"https://github.com/mwean","followers_url":"https://api.github.com/users/mwean/followers","following_url":"https://api.github.com/users/mwean/following{/other_user}","gists_url":"https://api.github.com/users/mwean/gists{/gist_id}","starred_url":"https://api.github.com/users/mwean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwean/subscriptions","organizations_url":"https://api.github.com/users/mwean/orgs","repos_url":"https://api.github.com/users/mwean/repos","events_url":"https://api.github.com/users/mwean/events{/privacy}","received_events_url":"https://api.github.com/users/mwean/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T04:48:01Z","updated_at":"2016-11-01T04:48:01Z","body":"I'm having the same problem as @sardaukar. I played around with the timeout in the function that scrolls the definition into view, and 100ms seemed to fix it.\r\n\r\n```python\r\n# ctagsplugin.py\r\ndef select(view, region):\r\n    sel_set = view.sel()\r\n    sel_set.clear()\r\n    sel_set.add(region)\r\n    sublime.set_timeout(functools.partial(view.show_at_center, region), 100)\r\n```\r\n\r\nIt seems weird that we have to wait that long before scrolling and that the newer version would cause problems..."}}
{"actor":{"display_login":"mwean"}}