{"action":"created","issue":{"url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/117","labels_url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/117/comments","events_url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/117/events","html_url":"https://github.com/yongkangchen/atom-ctags/issues/117","id":100258618,"number":117,"title":"duplicate symbol problem","user":{"login":"Kimilhee","id":2024856,"avatar_url":"https://avatars.githubusercontent.com/u/2024856?v=3","gravatar_id":"","url":"https://api.github.com/users/Kimilhee","html_url":"https://github.com/Kimilhee","followers_url":"https://api.github.com/users/Kimilhee/followers","following_url":"https://api.github.com/users/Kimilhee/following{/other_user}","gists_url":"https://api.github.com/users/Kimilhee/gists{/gist_id}","starred_url":"https://api.github.com/users/Kimilhee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kimilhee/subscriptions","organizations_url":"https://api.github.com/users/Kimilhee/orgs","repos_url":"https://api.github.com/users/Kimilhee/repos","events_url":"https://api.github.com/users/Kimilhee/events{/privacy}","received_events_url":"https://api.github.com/users/Kimilhee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-11T08:38:05Z","updated_at":"2015-08-20T03:41:14Z","closed_at":"2015-08-19T07:38:47Z","body":"I use OSX 10.10.4 and Atom 1.0.5 and atom-ctags 4.1.4.\r\n\r\natom-ctags makes .tags file like the following exactly the same duplicate symbols.\r\n\r\nmakeIndex2\t/Users/kimilhee/Dev/napoli/bacon/indexing/make-auto-comp-data.js\t/^function makeIndex2(areas, nonAreas) {$/;\"\tfunction\tline:123\r\nmakeIndex2\t/Users/kimilhee/Dev/napoli/bacon/indexing/make-auto-comp-data.js\t/^function makeIndex2(areas, nonAreas) {$/;\"\tfunction\tline:123\r\n\r\nSo, when I try to jump to the function atom-ctags shows two symbol options instead jumping right away.\r\nI want to jump right away when there is only one function.\r\n\r\nAnd there are another issue.\r\natom-ctags makes another .tags1 file which contains duplicate symbols too.\r\n\r\nPlease fix this issue.\r\nThank you."},"comment":{"url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/comments/132875447","html_url":"https://github.com/yongkangchen/atom-ctags/issues/117#issuecomment-132875447","issue_url":"https://api.github.com/repos/yongkangchen/atom-ctags/issues/117","id":132875447,"user":{"login":"Kimilhee","id":2024856,"avatar_url":"https://avatars.githubusercontent.com/u/2024856?v=3","gravatar_id":"","url":"https://api.github.com/users/Kimilhee","html_url":"https://github.com/Kimilhee","followers_url":"https://api.github.com/users/Kimilhee/followers","following_url":"https://api.github.com/users/Kimilhee/following{/other_user}","gists_url":"https://api.github.com/users/Kimilhee/gists{/gist_id}","starred_url":"https://api.github.com/users/Kimilhee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kimilhee/subscriptions","organizations_url":"https://api.github.com/users/Kimilhee/orgs","repos_url":"https://api.github.com/users/Kimilhee/repos","events_url":"https://api.github.com/users/Kimilhee/events{/privacy}","received_events_url":"https://api.github.com/users/Kimilhee/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T03:41:14Z","updated_at":"2015-08-20T03:41:14Z","body":"Thank you for your comment.\r\n\r\nBut I finally found the reason for the duplicate definition of the symbols.\r\nIt's in the second line of the javascript rule in the .ctags file.\r\n\r\n--regex-JavaScript=/function[ \\t]+([A-Za-z0-9_$]+)[ \\t]([^)])/\\1/,function/\r\n\r\nWhen I removed the line and the duplicate definition disappeared!\r\n\r\nThank you."}}