Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Could not open the editor(Could not open the editor: No editor descriptor for id org.eclipse.cdt.ui.editor.CEditor)
Could not open the editor [message #672545] Sat, 21 May 2011 16:58 Go to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
Hello,

for 2 weeks or so I'm struggling with this phenomenon.

When I start eclipse as root I will see this error-message:
Could not open the editor: No editor descriptor for id org.eclipse.cdt.ui.editor.CEditor

I added the stack-trace at the end of this message.

And on the command-line I see this line:
W: Cannot inject update-sites, cannot find the correct config.


In eclipse I go Window->Preferences->General->Editors->File Associations
When I click at '*.c' and then Add eclipse presents me a list of internal editors but there is no C/C++-Editor.

This only happens wit C/C++-files, java works.

Confusingly it works when I start eclipse via the menu as a normal user.

When I try to install CDT it tells me that it will do nothing because CDT is already installed.

I start eclipse as root because I've modified some parts of the MySQL-server-code and I want to debug these parts (I've only got it working this way).

My system:
Ubuntu 10.04 64 bit
Eclipse Galileo

Any tips?
Do you need more information?

AugustQ

PS: the stack-trace
org.eclipse.ui.PartInitException: No editor descriptor for id org.eclipse.cdt.ui.editor.CEditor
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:598)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
	at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1417)
	at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

Re: Could not open the editor [message #673167 is a reply to message #672545] Sun, 22 May 2011 16:30 Go to previous messageGo to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
Hello,

this is what I did today (because Eclipse is unusab le now):

removed it from within Ubuntu and reinstalled it again -> no help

removed it from within Ubuntu and on the file-system I removed some directories:

- ~/worksapce/.metadata
- ~/.eclipse

so then I started to install eclipse again -> no help.

As you can see from the picture I added there is no choice of an C/C++-Editor when I try to open a file.


And when I try to install the missing software I get the follwoing message:

Cannot complete the request.  See the error log for details.
"Eclipse C/C++ Development Tools" will be ignored because it is already installed.
"Eclipse C/C++ Development Tools SDK" will be ignored because it is already installed.


What can I do now?

Thanks in advance.
AugustQ
Re: Could not open the editor [message #673231 is a reply to message #673167] Sun, 22 May 2011 23:28 Go to previous messageGo to next message
Andrey Kourskov is currently offline Andrey KourskovFriend
Messages: 54
Registered: July 2009
Member
How do you install Eclipse?
From Ubuntu's repository?
Re: Could not open the editor [message #673473 is a reply to message #673231] Mon, 23 May 2011 18:21 Go to previous messageGo to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
Hello Andrey,

yes.

AugustQ
Re: Could not open the editor [message #673476 is a reply to message #673473] Mon, 23 May 2011 18:30 Go to previous messageGo to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
just one more information: please look at the picture I added.

You can see the CDT is istalled but I cannot use it.

Any ideas?
Thanks in advance.

AugustQ
Re: Could not open the editor [message #673477 is a reply to message #673473] Mon, 23 May 2011 18:31 Go to previous messageGo to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
just one more information: please look at the picture I added.

You can see the CDT is istalled but I cannot use it.

Any ideas?
Thanks in advance.

AugustQ
Re: Could not open the editor [message #673505 is a reply to message #673477] Mon, 23 May 2011 21:53 Go to previous messageGo to next message
Andrey Kourskov is currently offline Andrey KourskovFriend
Messages: 54
Registered: July 2009
Member
I recommend you to install Eclipse CDT from here.
Just download it and unpack where you want.
Re: Could not open the editor [message #673793 is a reply to message #672545] Tue, 24 May 2011 18:57 Go to previous messageGo to next message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
Hello Andrey,

I will try it.
I hope I can do it tomorrow.

Thanks.
AugustQ

[Updated on: Tue, 24 May 2011 19:00]

Report message to a moderator

Re: Could not open the editor [message #674081 is a reply to message #673793] Wed, 25 May 2011 18:38 Go to previous message
August Quint is currently offline August QuintFriend
Messages: 12
Registered: May 2011
Junior Member
Hello Andrey,

Thanks! This solved most of my problems.

Now I'm struggling with errors that didn't happen before (in vio.c of the MySQL-sources) but I try to fix this by myself.

AugustQ
Previous Topic:subdir.mk with relative paths? or makefiles from .cproject?
Next Topic:I can't include header files no matter where I put them
Goto Forum:
  


Current Time: Fri Apr 19 08:02:33 GMT 2024

Powered by FUDForum. Page generated in 0.03992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top