Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » An error has occurred when creating this editor
An error has occurred when creating this editor [message #21921] Mon, 18 March 2002 13:44 Go to next message
Eclipse UserFriend
Originally posted by: mwisse.hs-harz.de

Hallo!

I try to use
cdt-eclipse-R2-0125-20020308

with
eclipse-SDK-20020214-linux-motif .

I created a first C/C++ project for testing with the wizard and imported
some files. When I try to view a .c or a .h file, I get following error:

"An error has occurred when creating this editor".

What can I do?

Best regards and thanks for assistance.

Michael
Re: An error has occurred when creating this editor [message #21967 is a reply to message #21921] Mon, 18 March 2002 15:22 Go to previous messageGo to next message
C4Eclipse Team is currently offline C4Eclipse TeamFriend
Messages: 65
Registered: July 2009
Member
Hi Michael,

I've tried this out with the drivers you mentioned but was unable to
reproduce.

Could you provide more details? There's a file that logs errors such as
this - you can find it in the "eclipse/workspace/.metadata" directory.
Could you post the log output?

Thanks,
Dave

Michael Wisse wrote:

> Hallo!
>
> I try to use
> cdt-eclipse-R2-0125-20020308
>
> with
> eclipse-SDK-20020214-linux-motif .
>
> I created a first C/C++ project for testing with the wizard and imported
> some files. When I try to view a .c or a .h file, I get following error:
>
> "An error has occurred when creating this editor".
>
> What can I do?
>
> Best regards and thanks for assistance.
>
> Michael
Re: An error has occurred when creating this editor [message #22013 is a reply to message #21967] Mon, 18 March 2002 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mwisse.hs-harz.de

Hello Dave!

Here is the content of .log:


Log: Mon Mar 18 14:35:00 CET 2002
2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in:
org.eclipse.ui.
java.lang.NoSuchMethodError
at
com.ibm.lpex.alef.LpexSourceViewer.configure(LpexSourceViewe r.java:329)
at
com.ibm.lpex.alef.LpexAbstractTextEditor.createPartControl(L pexAbstractTextEditor.java:786)
at
org.eclipse.cdt.cpp.ui.internal.editor.CppEditor.createPartC ontrol(CppEditor.java:87)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:58)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:56)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java :98)
at
org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWork book.java:214)
at
org.eclipse.ui.internal.EditorWorkbook.createControl(EditorW orkbook.java:179)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:174)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:174)
at
org.eclipse.ui.internal.PerspectivePresentation.activate(Per spectivePresentation.java:88)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:552)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:1069)
at
org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindo w.java:919)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:56)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:907)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:820)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:746)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:489)
at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java :539)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:389)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:768)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:777)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:502)
at org.eclipse.core.launcher.Main.main(Main.java:362)
Log: Mon Mar 18 14:35:02 CET 2002
2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in:
org.eclipse.ui.
java.lang.NoSuchMethodError
at
com.ibm.lpex.alef.LpexSourceViewer.configure(LpexSourceViewe r.java:329)
at
com.ibm.lpex.alef.LpexAbstractTextEditor.createPartControl(L pexAbstractTextEditor.java:786)
at
org.eclipse.cdt.cpp.ui.internal.editor.CppEditor.createPartC ontrol(CppEditor.java:87)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:58)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:56)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java :98)
at
org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWork book.java:214)
at
org.eclipse.ui.internal.EditorWorkbook.createControl(EditorW orkbook.java:179)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:174)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:174)
at
org.eclipse.ui.internal.PerspectivePresentation.activate(Per spectivePresentation.java:88)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:552)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:1069)
at
org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindo w.java:919)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:56)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:907)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:820)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:746)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:489)
at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java :539)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:389)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:768)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:777)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:502)
at org.eclipse.core.launcher.Main.main(Main.java:362)
Log: Mon Mar 18 14:35:05 CET 2002
2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in:
org.eclipse.ui.
java.lang.NullPointerException
at
com.ibm.lpex.alef.LpexContextContributor.setActiveEditor(Lpe xContextContributor.java:247)
at
org.eclipse.cdt.cpp.ui.internal.editor.contributor.CppEditor ContextContributor.setActiveEditor(CppEditorContextContribut or.java:69)
at
org.eclipse.ui.internal.EditorActionBars.partChanged(EditorA ctionBars.java:88)
at org.eclipse.ui.internal.WorkbenchPage$1.run(WorkbenchPage.ja va:121)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.WorkbenchPage.activatePart(Workbench Page.java:113)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:1073)
at
org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindo w.java:919)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:56)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:907)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:820)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:746)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:817)
at org.eclipse.core.runtime.Platform.run(Platform.java:395)
at
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:489)
at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java :539)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:389)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:768)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:777)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:502)
at org.eclipse.core.launcher.Main.main(Main.java:362)

Michael


David McKnight wrote:
>
> Hi Michael,
>
> I've tried this out with the drivers you mentioned but was unable to
> reproduce.
>
> Could you provide more details? There's a file that logs errors such as
> this - you can find it in the "eclipse/workspace/.metadata" directory.
> Could you post the log output?
>
> Thanks,
> Dave
>
> Michael Wisse wrote:
>
> > Hallo!
> >
> > I try to use
> > cdt-eclipse-R2-0125-20020308
> >
> > with
> > eclipse-SDK-20020214-linux-motif .
> >
> > I created a first C/C++ project for testing with the wizard and imported
> > some files. When I try to view a .c or a .h file, I get following error:
> >
> > "An error has occurred when creating this editor".
> >
> > What can I do?
> >
> > Best regards and thanks for assistance.
> >
> > Michael
Re: An error has occurred when creating this editor [message #22057 is a reply to message #21921] Mon, 18 March 2002 18:26 Go to previous messageGo to next message
adrian is currently offline adrianFriend
Messages: 26
Registered: July 2009
Junior Member
Michael,

For eclipse-SDK-20020214 you must use cdt-eclipse-R2-0214-20020308. Some
Eclipse editor interfaces changed between Eclipse build 20020125 and build
20020214...

Michael Wisse wrote:

> Hallo!
>
> I try to use
> cdt-eclipse-R2-0125-20020308
>
> with
> eclipse-SDK-20020214-linux-motif .
>
> I created a first C/C++ project for testing with the wizard and imported
> some files. When I try to view a .c or a .h file, I get following error:
>
> "An error has occurred when creating this editor".
>
> What can I do?
>
> Best regards and thanks for assistance.
>
> Michael
Re: An error has occurred when creating this editor [message #22274 is a reply to message #21921] Tue, 19 March 2002 08:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mwisse.hs-harz.de

Hello Adrian!

You are right, I used the wrong sdk. I changed to eclipse R2-0125, but I
have the same problem, that the editor can not be created.

Now I want to try a newer jdk, I use 1.3.0.
I already tried to use eclipse R1.0, but I am not able to start it:
"memory access error". Perhaps it is a problem of the jdk.

Michael


Michael Wisse wrote:
>
> Hallo!
>
> I try to use
> cdt-eclipse-R2-0125-20020308
>
> with
> eclipse-SDK-20020214-linux-motif .
>
> I created a first C/C++ project for testing with the wizard and imported
> some files. When I try to view a .c or a .h file, I get following error:
>
> "An error has occurred when creating this editor".
>
> What can I do?
>
> Best regards and thanks for assistance.
>
> Michael
Re: An error has occurred when creating this editor [message #22308 is a reply to message #22274] Tue, 19 March 2002 14:38 Go to previous messageGo to next message
C4Eclipse Team is currently offline C4Eclipse TeamFriend
Messages: 65
Registered: July 2009
Member
I haven't looked into the jre and editor problems you mention here, but I'd
recommend staying with the 20020214 Eclipse driver. Use the 20020214 CDT
driver, rather than going back a level.

Dave

Michael Wisse wrote:

> Hello Adrian!
>
> You are right, I used the wrong sdk. I changed to eclipse R2-0125, but I
> have the same problem, that the editor can not be created.
>
> Now I want to try a newer jdk, I use 1.3.0.
> I already tried to use eclipse R1.0, but I am not able to start it:
> "memory access error". Perhaps it is a problem of the jdk.
>
> Michael
>
> Michael Wisse wrote:
> >
> > Hallo!
> >
> > I try to use
> > cdt-eclipse-R2-0125-20020308
> >
> > with
> > eclipse-SDK-20020214-linux-motif .
> >
> > I created a first C/C++ project for testing with the wizard and imported
> > some files. When I try to view a .c or a .h file, I get following error:
> >
> > "An error has occurred when creating this editor".
> >
> > What can I do?
> >
> > Best regards and thanks for assistance.
> >
> > Michael
Re: An error has occurred when creating this editor [message #22336 is a reply to message #22274] Tue, 19 March 2002 16:13 Go to previous messageGo to next message
Jeff Turnham is currently offline Jeff TurnhamFriend
Messages: 67
Registered: July 2009
Member
Hi Michael,

It sounds like you have installed and re-installed incompatible versions of
the CDT and Eclipse. Therefore, it is not clear what you currently have
installed and why you are getting the errors. To help us diagnose the
problem, can you do the following to make sure you have a "clean"
installation:

1. Remove your current eclipse\cdt installation (if possible).
2. Install the eclipse-SDK-20020214-linux-motif.zip Stable Eclipse Build.
3. Then install the cdt-eclipse-R2-0214-20020308.zip Stable CDT Build.

If you still get the same errors, can you let us know the following:
1. What Linux Distribution\Level you are running.
2. Provide a copy of your workspace/.metadata/.log file
3. Provide the steps that you went through to produce the problem.

Thanks alot...

Jeff Turnham



"Michael Wisse" <mwisse@hs-harz.de> wrote in message
news:3C96F043.2178FB8E@hs-harz.de...
> Hello Adrian!
>
> You are right, I used the wrong sdk. I changed to eclipse R2-0125, but I
> have the same problem, that the editor can not be created.
>
> Now I want to try a newer jdk, I use 1.3.0.
> I already tried to use eclipse R1.0, but I am not able to start it:
> "memory access error". Perhaps it is a problem of the jdk.
>
> Michael
>
>
> Michael Wisse wrote:
> >
> > Hallo!
> >
> > I try to use
> > cdt-eclipse-R2-0125-20020308
> >
> > with
> > eclipse-SDK-20020214-linux-motif .
> >
> > I created a first C/C++ project for testing with the wizard and imported
> > some files. When I try to view a .c or a .h file, I get following error:
> >
> > "An error has occurred when creating this editor".
> >
> > What can I do?
> >
> > Best regards and thanks for assistance.
> >
> > Michael
Re: An error has occurred when creating this editor [message #22492 is a reply to message #22274] Thu, 21 March 2002 07:38 Go to previous message
Eclipse UserFriend
Originally posted by: mwisse.hs-harz.de

Now it works, with jdk 1.3.0, too. I was confused with the versions.
Thanks for assistance.
What jdk do you recommend?

Regards
Michael



Michael Wisse wrote:
>
> Hello Adrian!
>
> You are right, I used the wrong sdk. I changed to eclipse R2-0125, but I
> have the same problem, that the editor can not be created.
>
> Now I want to try a newer jdk, I use 1.3.0.
> I already tried to use eclipse R1.0, but I am not able to start it:
> "memory access error". Perhaps it is a problem of the jdk.
>
> Michael
>
> Michael Wisse wrote:
> >
> > Hallo!
> >
> > I try to use
> > cdt-eclipse-R2-0125-20020308
> >
> > with
> > eclipse-SDK-20020214-linux-motif .
> >
> > I created a first C/C++ project for testing with the wizard and imported
> > some files. When I try to view a .c or a .h file, I get following error:
> >
> > "An error has occurred when creating this editor".
> >
> > What can I do?
> >
> > Best regards and thanks for assistance.
> >
> > Michael
Previous Topic:CDT as top level project
Next Topic:IDocument.replace(...) don't work with lpex
Goto Forum:
  


Current Time: Fri Apr 19 22:22:24 GMT 2024

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

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

Back to the top