Community
Participate
Working Groups
Ubuntu 16.04 Eclupse 4.6.2 RC1 I tried to set the EGit's default repository: Window --> Preferences --> Team --> Git, and then reset the `Default repository folder`. However, every time I restart Eclipse, the setting goes back to its default `/home/<username>/git`. How do I fix it, or can I manually edit the setting file (which one)?
This works for me using Eclipse Neon.1 and a recent EGit 4.6 nightly build I guess you used Oomph Preference recorder without noticing and you have recorded this setting. Check "Preferences > Oomph > Setup Tasks > Preference Recorder"
Nope, I didn't check anything in the "Oomph --> Setup Tasks --> Preference Recorder" page.
are there any related errors shown in the error log ?
I deleted ~/.eclipse and workspace/.metadata directories. Restart eclipse, change the default Git repository folder, and restart Eclipse. The default repository folder still remains its default `/home/<username>/git`. Window --> Show View --> Error Log: Plug-in: org.eclipse.ui.monitoring Message: UI freeze of 0.60s at ... Sample at ... Thread 'main' tid=1 (RUNNABLE)
Detailed error messages: !SESSION 2016-12-01 10:03:22.828 ----------------------------------------------- eclipse.buildId=4.6.2.M20161116-1100 java.version=1.8.0_111 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=zh_TW Framework arguments: -product org.eclipse.epp.package.committers.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.committers.product !ENTRY org.eclipse.ui.monitoring 2 0 2016-12-01 10:04:07.887 !MESSAGE UI freeze of 0.60s at 10:04:07.020 !SUBENTRY 1 org.eclipse.ui.monitoring 1 0 2016-12-01 10:04:07.887 !MESSAGE Sample at 10:04:07.357 (+0.337s) Thread 'main' tid=1 (RUNNABLE) !STACK 0 Stack Trace at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.access$000(FileOutputStream.java:53) at java.io.FileOutputStream$1.close(FileOutputStream.java:356) at java.io.FileDescriptor.closeAll(FileDescriptor.java:212) at java.io.FileOutputStream.close(FileOutputStream.java:354) at org.eclipse.osgi.storage.StorageUtil.readFile(StorageUtil.java:83) at org.eclipse.osgi.storage.BundleInfo$Generation.storeContent(BundleInfo.java:286) at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getFile(ZipBundleFile.java:194) at org.eclipse.osgi.storage.bundlefile.ZipBundleEntry.getFileURL(ZipBundleEntry.java:109) at org.eclipse.osgi.storage.url.BundleURLConnection.getFileURL(BundleURLConnection.java:129) at org.eclipse.osgi.storage.url.BundleURLConverter.toFileURL(BundleURLConverter.java:34) at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:207) at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:213) at org.eclipse.jface.resource.URLImageDescriptor.access$1(URLImageDescriptor.java:200) at org.eclipse.jface.resource.URLImageDescriptor$URLImageFileNameProvider.getImagePath(URLImageDescriptor.java:53) at org.eclipse.swt.internal.DPIUtil.validateAndGetImagePathAtZoom(DPIUtil.java:407) at org.eclipse.swt.graphics.Image.<init>(Image.java:775) at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:244) at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:164) at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:52) at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:86) at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:69) at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:86) at org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:172) at org.eclipse.ui.menus.CommandContributionItem.updateIcons(CommandContributionItem.java:923) at org.eclipse.ui.menus.CommandContributionItem.fill(CommandContributionItem.java:447) at org.eclipse.ui.internal.ShowViewMenu.fill(ShowViewMenu.java:333) at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:728) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:810) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:472) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:497) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:256) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5224) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1345) at org.eclipse.swt.widgets.Menu.gtk_show(Menu.java:711) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1949) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5489) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2495) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4146) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519) at org.eclipse.equinox.launcher.Main.main(Main.java:1492) !SESSION 2016-12-01 11:00:27.859 -----------------------------------------------
I deleted folder `/opt/eclipse` (Eclipse was installed here), `~/.eclipse`, and `<...>/workspace/.metadata`, and then clean-installed the latest version of Eclipse (Neon 2.RC3). The problem persists. I actually have more than 5 computers, all with the same OS and Eclipse settings. However, only one of them has the problem. Why? Except from the 3 folders mentioned above, are there any other folders/files that I should clear?