{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1827","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1827/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1827/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1827/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1827","id":102894825,"number":1827,"title":"Refactor- renaming doesn't rename all occurrences ","user":{"login":"BoazJR","id":10247740,"avatar_url":"https://avatars.githubusercontent.com/u/10247740?v=3","gravatar_id":"","url":"https://api.github.com/users/BoazJR","html_url":"https://github.com/BoazJR","followers_url":"https://api.github.com/users/BoazJR/followers","following_url":"https://api.github.com/users/BoazJR/following{/other_user}","gists_url":"https://api.github.com/users/BoazJR/gists{/gist_id}","starred_url":"https://api.github.com/users/BoazJR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoazJR/subscriptions","organizations_url":"https://api.github.com/users/BoazJR/orgs","repos_url":"https://api.github.com/users/BoazJR/repos","events_url":"https://api.github.com/users/BoazJR/events{/privacy}","received_events_url":"https://api.github.com/users/BoazJR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/milestones/1.0.0","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6/labels","id":169045,"number":6,"title":"1.0.0","description":"","creator":{"login":"mtoader","id":372850,"avatar_url":"https://avatars.githubusercontent.com/u/372850?v=3","gravatar_id":"","url":"https://api.github.com/users/mtoader","html_url":"https://github.com/mtoader","followers_url":"https://api.github.com/users/mtoader/followers","following_url":"https://api.github.com/users/mtoader/following{/other_user}","gists_url":"https://api.github.com/users/mtoader/gists{/gist_id}","starred_url":"https://api.github.com/users/mtoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtoader/subscriptions","organizations_url":"https://api.github.com/users/mtoader/orgs","repos_url":"https://api.github.com/users/mtoader/repos","events_url":"https://api.github.com/users/mtoader/events{/privacy}","received_events_url":"https://api.github.com/users/mtoader/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":406,"state":"open","created_at":"2012-09-02T21:49:33Z","updated_at":"2015-08-25T19:28:00Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-08-24T21:24:41Z","updated_at":"2015-08-25T20:30:30Z","closed_at":"2015-08-25T19:28:00Z","body":"Aloha,\r\nI have a function: \r\n```\r\nfunc DoSomething(){\r\n\tvar k = 1\r\n\tk = 2\r\n\tk+=k\r\n}\r\n```\r\nwhen I select any 'k' and right click->refactor->rename and change 'k' to 'd' it changes all of the occurrences of k to d. However, when I accept the change with enter, all the items revert back except for the variable deceleration.  \r\n```\r\nfunc DoSomething(){\r\n\tvar d = 1\r\n\tk = 2\r\n\tk+=k\r\n}\r\n```\r\nI am using IDEA 14.1.4\r\nWith go version go1.4.2 windows/amd64\r\ngo version go1.4.2 (appengine-1.9.24) windows/amd64\r\njava 7 update 75\r\nplugin version 0.9.402\r\nThanks"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/134731198","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1827#issuecomment-134731198","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1827","id":134731198,"user":{"login":"BoazJR","id":10247740,"avatar_url":"https://avatars.githubusercontent.com/u/10247740?v=3","gravatar_id":"","url":"https://api.github.com/users/BoazJR","html_url":"https://github.com/BoazJR","followers_url":"https://api.github.com/users/BoazJR/followers","following_url":"https://api.github.com/users/BoazJR/following{/other_user}","gists_url":"https://api.github.com/users/BoazJR/gists{/gist_id}","starred_url":"https://api.github.com/users/BoazJR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoazJR/subscriptions","organizations_url":"https://api.github.com/users/BoazJR/orgs","repos_url":"https://api.github.com/users/BoazJR/repos","events_url":"https://api.github.com/users/BoazJR/events{/privacy}","received_events_url":"https://api.github.com/users/BoazJR/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T20:30:30Z","updated_at":"2015-08-25T20:30:30Z","body":"Sure, here they are: \r\n```\r\n2015-08-14 10:21:38,661 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ \r\n2015-08-14 10:21:38,708 [     47]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-141.1532.4, 18 Jun 2015 00:00) \r\n2015-08-14 10:21:38,708 [     47]   INFO -        #com.intellij.idea.Main - OS: Windows 8 (6.2, x86) \r\n2015-08-14 10:21:38,708 [     47]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_40-b26 (Oracle Corporation) \r\n2015-08-14 10:21:38,708 [     47]   INFO -        #com.intellij.idea.Main - JVM: 25.40-b25 (Java HotSpot(TM) Server VM) \r\n2015-08-14 10:21:38,879 [    218]   INFO -        #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djb.vmOptions=C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition 14.1.4\\bin\\idea.exe.vmoptions -Xbootclasspath/a:C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition 14.1.4\\lib\\boot.jar -Didea.paths.selector=IdeaIC14 \r\n2015-08-14 10:21:39,333 [    672]   INFO -        #com.intellij.idea.Main - JNA library loaded (32-bit) in 454 ms \r\n2015-08-14 10:21:39,457 [    796]   INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational \r\n2015-08-14 10:21:39,661 [   1000]   INFO -        #com.intellij.idea.Main - Using \"FocusKiller\" library to prevent focus stealing. \r\n2015-08-14 10:34:21,900 [ 763239]   INFO - llij.ide.plugins.PluginManager - 29 plugins initialized in 528 ms \r\n2015-08-14 10:34:21,907 [ 763246]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.1.1.0), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage, Eclipse Integration (3.0), EditorConfig (1.0), Git Integration (8.1), GitHub, Gradle, Groovy (9.0), I18n for Java, IDEA CORE, IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (0.1), JavaFX (1.0), Maven Integration, Plugin DevKit (1.0), Properties Support, Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer, XPathView + XSLT Support (4), XSLT-Debugger (1.4), hg4idea (10.0) \r\n2015-08-14 10:34:27,615 [ 768954]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1@1cba250; elapsed time was 150ms \r\n2015-08-14 10:34:27,634 [ 768973]   INFO - ellij.vfs.persistent.FSRecords - Marking VFS as corrupted \r\n2015-08-14 10:34:27,637 [ 768976]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=498008064 \r\n2015-08-14 10:34:27,797 [ 769136]   INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition 14.1.4\\bin\\fsnotifier.exe \r\n2015-08-14 10:34:29,426 [ 770765]   INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational. \r\n2015-08-14 10:34:31,135 [ 772474]   INFO - .history.utils.LocalHistoryLog - local history version mismatch (was: 0, expected: 5), rebuilding... \r\n2015-08-14 10:34:31,135 [ 772474]   INFO - .history.utils.LocalHistoryLog - FS has been rebuild, rebuilding local history... \r\n2015-08-14 10:34:31,471 [ 772810]  ERROR - ij.components.ComponentManager - Cyclic component initialization: com.intellij.ide.ui.LafManager [Plugin: com.intellij] \r\ncom.intellij.diagnostic.PluginException: Cyclic component initialization: com.intellij.ide.ui.LafManager [Plugin: com.intellij]\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:555)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:610)\r\n\tat com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:245)\r\n\tat com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:211)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentFromContainer(ComponentManagerImpl.java:168)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.getComponentFromContainer(ApplicationImpl.java:533)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:199)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:194)\r\n\tat com.intellij.ide.ui.LafManager.getInstance(LafManager.java:29)\r\n\tat com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.setGlobalScheme(EditorColorsManagerImpl.java:237)\r\n\tat com.intellij.ide.ui.laf.darcula.DarculaInstaller.install(DarculaInstaller.java:48)\r\n\tat com.intellij.ide.ui.laf.LafManagerImpl.initComponent(LafManagerImpl.java:222)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:568)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:610)\r\n\tat com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:245)\r\n\tat com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:211)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:125)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:354)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:116)\r\n\tat com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:87)\r\n\tat com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:101)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:499)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:481)\r\n\tat com.intellij.idea.IdeaApplication.run(IdeaApplication.java:170)\r\n\tat com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:702)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:696)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:719)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n2015-08-14 10:34:31,487 [ 772826]  ERROR - ij.components.ComponentManager - IntelliJ IDEA 14.1.4  Build #IC-141.1532.4 \r\n2015-08-14 10:34:31,488 [ 772827]  ERROR - ij.components.ComponentManager - JDK: 1.8.0_40 \r\n2015-08-14 10:34:31,488 [ 772827]  ERROR - ij.components.ComponentManager - VM: Java HotSpot(TM) Server VM \r\n2015-08-14 10:34:31,488 [ 772827]  ERROR - ij.components.ComponentManager - Vendor: Oracle Corporation \r\n2015-08-14 10:34:31,488 [ 772827]  ERROR - ij.components.ComponentManager - OS: Windows 8 \r\n2015-08-14 10:34:35,643 [ 776982]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 \r\n2015-08-14 10:34:41,005 [ 782344]   INFO -                  TestNG Runner - Create TestNG Template Configuration \r\n2015-08-14 10:34:41,540 [ 782879]   INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 4105 ms \r\n2015-08-14 10:34:41,541 [ 782880]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms \r\n2015-08-14 10:34:44,349 [ 785688]   INFO - tellij.xml.Html5SchemaProvider - HTML5_SCHEMA_LOCATION = C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 14.1.4/lib/idea.jar!/resources/html5-schema/html5.rnc \r\n2015-08-14 10:34:44,349 [ 785688]   INFO - tellij.xml.Html5SchemaProvider - XHTML5_SCHEMA_LOCATION = C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 14.1.4/lib/idea.jar!/resources/html5-schema/xhtml5.rnc \r\n2015-08-14 10:34:44,349 [ 785688]   INFO - tellij.xml.Html5SchemaProvider - CHARS_DTD_LOCATION = C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 14.1.4/lib/idea.jar!/resources/html5-schema/html5chars.ent \r\n2015-08-14 10:34:44,967 [ 786306]   INFO - pl.stores.ApplicationStoreImpl - 83 application components initialized in 22864 ms \r\n2015-08-14 10:34:45,306 [ 786645]   INFO - .intellij.idea.IdeaApplication - App initialization took 810531 ms \r\n2015-08-14 10:56:24,531 [2085870]   INFO - org.jetbrains.io.BuiltInServer - web server stopped \r\n2015-08-14 10:56:24,532 [2085871]   INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 0 auto-detected files\r\nElapsed time on auto-detect: 0 ms \r\n2015-08-14 10:56:24,586 [2085925]   INFO - dea.ddms.adb.AdbService$Ddmlib - DDMLib terminated \r\n2015-08-14 10:56:24,586 [2085925]   INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN \r\n2015-08-14 10:56:24,604 [2085943]   INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN \r\n2015-08-14 10:56:24,604 [2085943]   INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN \r\n2015-08-14 10:56:24,605 [2085944]   INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN \r\n2015-08-14 10:56:24,757 [2086096]   WARN - api.vfs.impl.local.FileWatcher - Watcher terminated with exit code 0 \r\n2015-08-14 10:56:24,758 [2086097]   INFO - newvfs.persistent.PersistentFS - VFS dispose started \r\n2015-08-14 10:56:24,759 [2086098]   INFO - newvfs.persistent.PersistentFS - VFS dispose completed \r\n2015-08-14 10:56:27,551 [2088890]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------```"}}