Bug 498219 - Can't open CVS Repositories view in my Debug perspective
Summary: Can't open CVS Repositories view in my Debug perspective
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2016-07-20 12:37 EDT by Markus Keller CLA
Modified: 2019-11-02 16:52 EDT (History)
3 users (show)

See Also:


Attachments
workbench.xmi (502.40 KB, application/octet-stream)
2016-07-20 12:37 EDT, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2016-07-20 12:37:01 EDT
Created attachment 263217 [details]
workbench.xmi

I20160719-0800

I can't open the CVS Repositories view in my Debug perspective any more. When I open the view via Show View > Other..., the view just doesn't get opened. The workbench window becomes active again and the caret blinks in the editor, but the editor tab looks deactivated and editor keybindings are broken until I focus another part or open/close a dialog.

I think I once had the CVS Repositories as fast view, but now I don't see any minimized views in the trim bar.

I can show the view in other perspectives. Resetting my perspective is not a solution, since I should not have to lose all my modifications.

http://stackoverflow.com/questions/9010334/eclipse-ide-view-gone-how-to-get-it-back talks about hacks to the workbench.xmi. I'll attach that file.
Comment 1 Patrik Suzzi CLA 2016-07-21 07:35:28 EDT
Does it work, if you remove all the shared element with elementId="org.eclipse.team.ccvs.ui.RepositoriesView" ?

Below you see the xml content of that element. 

    <sharedElements xsi:type="basic:Part" xmi:id="_o11wl-25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="CVS Repositories" iconURI="platform:/plugin/org.eclipse.team.cvs.ui/icons/full/eview16/repo_rep.gif" tooltip="" closeable="true">
      <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
      <tags>View</tags>
      <tags>categoryTag:CVS</tags>
      <menus xmi:id="_o11wmO25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView">
        <tags>ViewMenu</tags>
        <tags>menuContribution:menu</tags>
      </menus>
      <menus xsi:type="menu:PopupMenu" xmi:id="_o11wme25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView">
        <tags>menuContribution:popup</tags>
        <tags>popup:org.eclipse.team.ccvs.ui.RepositoriesView</tags>
      </menus>
      <menus xsi:type="menu:PopupMenu" xmi:id="_o11wmu25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView">
        <tags>menuContribution:popup</tags>
        <tags>popup:org.eclipse.team.ccvs.ui.RepositoriesView</tags>
      </menus>
      <menus xsi:type="menu:PopupMenu" xmi:id="_o11wm-25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView">
        <tags>menuContribution:popup</tags>
        <tags>popup:org.eclipse.team.ccvs.ui.RepositoriesView</tags>
      </menus>
      <menus xsi:type="menu:PopupMenu" xmi:id="_o11wnO25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView">
        <tags>menuContribution:popup</tags>
        <tags>popup:org.eclipse.team.ccvs.ui.RepositoriesView</tags>
      </menus>
      <toolbar xmi:id="_o11wne25EeSs7cRH99wmng" elementId="org.eclipse.team.ccvs.ui.RepositoriesView"/>
    </sharedElements>
Comment 2 Markus Keller CLA 2016-10-04 13:46:49 EDT
(In reply to Patrik Suzzi from comment #1)
> Does it work, if you remove all the shared element with
> elementId="org.eclipse.team.ccvs.ui.RepositoriesView" ?

No, after deleting that element, I got the exceptions below and all my perspectives and other customizations were lost!

Note that the CVS Repositories view is actually there, it's just not rendered. The workbench window shows no part as focused, but it leaves the keyboard focus on the last control that had focus. Alt+Shift+F1 says "CVS Repositories" is the active part.

Not even removing all references to that elementId was enough. I had to surgically follow all xmi:id=... of all elements I deleted, and I had to make sure I replaced all selectedElement attributes that referred to such a deleted id by a reference to another element. That's not something a user should ever have to do.

Raising severity, since this is a clear case of data loss for all practical purposes.


Exceptions on startup:

eclipse.buildId=4.7.0.I20161004-1000
java.version=1.8.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -showlocation
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data C:\e\w\master -clean -consolelog -showlocation -console -debug C:\e\w\debug-options.properties

org.eclipse.e4.ui.workbench
Error
Tue Oct 04 19:09:27 CEST 2016
Unable to load resource file:/C:/e/w/master/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '_o11wl-25EeSs7cRH99wmng'. (file:/C:/e/w/master/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi, 92, 177)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.getResource(ResourceHandler.java:286)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadResource(ResourceHandler.java:262)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:169)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:378)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:253)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632)
	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:497)
	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)
Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '_o11wl-25EeSs7cRH99wmng'. (file:/C:/e/w/master/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi, 92, 177)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1179)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1264)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:745)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	... 24 more

eclipse.buildId=4.7.0.I20161004-1000
java.version=1.8.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -showlocation
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data C:\e\w\master -clean -consolelog -showlocation -console -debug C:\e\w\debug-options.properties

org.eclipse.e4.ui.workbench
Error
Tue Oct 04 19:09:27 CEST 2016
The persisted application model has no top-level window. Reinitializing with the default application model.

java.lang.Exception
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:174)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:378)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:253)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632)
	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:497)
	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)
Comment 3 ForceRs CLA 2017-03-23 17:42:41 EDT
I was getting this exception after updating from mars to neon:
Could not create the view: org.eclipse.team.ccvs.ui.RepositoriesView
This resulted in the CVS Repositories tab being displayed, but with text and no icon, but it contained only the error with detailed stack trace if desired.  I think this is the same issue reported here by Markus. 

I followed the instructions (after translating from German) on page http://www.torsten-horn.de/techdocs/java-eclipse.htm.

In English, do the following: 
If you encounter one of these error messages in the following:

Could not create the view: org.eclipse.team.ccvs.ui.RepositoriesView

Org.eclipse.team.core.TeamException: Could not instantiate provider org.eclipse.team.cvs.core.cvsnature

Then you probably installed a new version of Eclipse that did not have the CVS plug-in installed. In this case, for example, run the Mars Eclipse version:
'Help' | 'Install New Software ...' | 'Work with: Neon - http://download.eclipse.org/releases/neon' | 'Collaboration' | 'Eclipse CVS Client'.

The configuration of the CVS integration is done in the following steps:

    'Window' | 'Open Perspective' 'Other ...' | 'CVS Repository Exploring'.

In a nutshell, I updated my Eclipse CVS Client.  That fixed my issue.
Comment 4 Eclipse Genie CLA 2019-11-02 16:52:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.