{"action":"closed","issue":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/2276","repository_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/2276/labels{/name}","comments_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/2276/comments","events_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/2276/events","html_url":"https://github.com/rubberduck-vba/Rubberduck/issues/2276","id":180689333,"number":2276,"title":"Refactor rename \"duplicates\" variable name in replacement","user":{"login":"byronwall","id":495404,"avatar_url":"https://avatars.githubusercontent.com/u/495404?v=3","gravatar_id":"","url":"https://api.github.com/users/byronwall","html_url":"https://github.com/byronwall","followers_url":"https://api.github.com/users/byronwall/followers","following_url":"https://api.github.com/users/byronwall/following{/other_user}","gists_url":"https://api.github.com/users/byronwall/gists{/gist_id}","starred_url":"https://api.github.com/users/byronwall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byronwall/subscriptions","organizations_url":"https://api.github.com/users/byronwall/orgs","repos_url":"https://api.github.com/users/byronwall/repos","events_url":"https://api.github.com/users/byronwall/events{/privacy}","received_events_url":"https://api.github.com/users/byronwall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/bug","name":"bug","color":"DD0000"},{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/critical","name":"critical","color":"DD0000"},{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/refactorings","name":"refactorings","color":"DDDDDd"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20","html_url":"https://github.com/rubberduck-vba/Rubberduck/milestones/Version%202.0","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20/labels","id":1063094,"number":20,"title":"Version 2.0","description":"This version will include source control (GitHub) integration, WPF controls in dockable hosts, many more refactorings and inspections, and lots of bug fixes.","creator":{"login":"retailcoder","id":5751684,"avatar_url":"https://avatars.githubusercontent.com/u/5751684?v=3","gravatar_id":"","url":"https://api.github.com/users/retailcoder","html_url":"https://github.com/retailcoder","followers_url":"https://api.github.com/users/retailcoder/followers","following_url":"https://api.github.com/users/retailcoder/following{/other_user}","gists_url":"https://api.github.com/users/retailcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/retailcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retailcoder/subscriptions","organizations_url":"https://api.github.com/users/retailcoder/orgs","repos_url":"https://api.github.com/users/retailcoder/repos","events_url":"https://api.github.com/users/retailcoder/events{/privacy}","received_events_url":"https://api.github.com/users/retailcoder/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":501,"state":"open","created_at":"2015-04-11T13:20:05Z","updated_at":"2016-10-10T15:30:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-03T16:49:22Z","updated_at":"2016-10-10T15:30:56Z","closed_at":"2016-10-10T15:30:56Z","body":"I am running the rename to give some variables more descriptive names, but I am having trouble with RD \"duplicating\" part of the variable name.  It seems to be related to including the previous variable in the new variable name, but I am not sure of that.\r\n\r\nThis is the before case.  I am looking to rename `ser` to `chtSeries` and `obj` to `chtObj`.  The after case shows that `Series` is duplicated and that `Obj` is duplicated in the `For Each` line.  This leads to code that cannot compile.\r\n\r\n```\r\nSub testSubBefore()\r\n\r\n    Dim ser As Series\r\n    For Each ser In ActiveChart.SeriesCollection\r\n        \r\n    Next\r\n    \r\n    Dim obj As ChartObject\r\n    For Each obj In Selection\r\n    \r\n    Next\r\n\r\nEnd Sub\r\n\r\nSub testSubAfter()\r\n\r\n    Dim chtSeries As Series\r\n    For Each chtSeriesSeries In ActiveChart.SeriesCollection\r\n        \r\n    Next\r\n    \r\n    Dim chtObj As ChartObject\r\n    For Each chtObjObj In Selection\r\n    \r\n    Next\r\n\r\nEnd Sub\r\n```\r\n\r\nThese tests are done in a bare module in an empty workbook.  It also happens out in the wild where I am actually trying to do these renames."}}
{"actor":{"display_login":"retailcoder"}}