Community
Participate
Working Groups
Well, I'm not sure if this is the best summary for this bug or not - but here is what I am seeing... I have a class that extends TextEditor, and thus includes the following import: import org.eclipse.ui.editors.text.TextEditor; So - I add the following dependencies to my plugin: org.eclipse.ui org.eclipse.ui.editors However - my class will not compile and the error message is as follows: The type org.eclipse.ui.texteditor.StatusTextEditor cannot be resolved. It is indirectly referenced from required .class files. Digging into the Eclipse plugins reveals that StatusTextEditor is in a package called org.eclipse.ui.texteditor, however this package is NOT the one included in the plugin org.eclipse.ui.editors - it is in a package of the same name in the plugin org.eclipse.ui.workbench.texteditor. The PDE cannot seem to figure out this dependecy automatically. When I add the plugin org.eclipse.ui.workbench.texteditor as a dependency of my plugin, the compile error goes away. HOWEVER - if I check for unused plugins in the PDE plugin.xml editor - it tells me that org.eclipse.ui.workbench.texteditor is an unused dependency. If I remove it, the compile error is back. I dunno if this is a compiler resolving issue, a PDE issue, or not an issue at all - but it is kind of confusing to say the least.
Another issue I am sure related to this is: I imported the 3 plugins into my workspace a source projects: org.eclipse.ui org.eclipse.ui.editors org.eclipse.ui.workbench.texteditor ...while looking into this issue. I had some editors open, then I tried to delete these projects from my workspace and was met with the following string of errors: osgi> Exception creating editor: The classfile is not on the classpath Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException Unhandled event loop exception Reason: java.lang.NullPointerException The command for the key you pressed failed Reason: The command for the key you pressed failed ...etc. Now I cannot close my editor, and there are a ton of errors spewing (NPE's, etc.). I will attach an error log I managed to export - looks like I have to forcibly shut down Eclipse....OK that didn't work. More Null Pointer Exceptions. Looks like the 3-finger salute is in order... ;o)
Created attachment 11557 [details] Screenshot of locked up platform The error log export will not create a file - so here is a dump of my screen before I kill Eclipse.
Different issues here. The dependencies haev changed for 3.0. See the migration guide for that. Please file a separate PR against PDE for the found issue. Regarding the NPE, please attach the log file. Otherwise, we can not do anything.
Created attachment 11592 [details] Error log showing NPE tracebacks Sorry. Now that I have recovered my Eclipse install I can export the error log. See the ream of NPEs attached. The final few entries at the bottom are the classpath errors related to deleting the three mentioned projects from my workspace. I think this has to do with the platform being confused about which plugins to use - the copies in the workspace or the actual installed plugins.
The NPEs are all in UI land and not Java/Text editor.
Sorry for the noise. I'll look into UI and see if this is already logged somewhere.
.
Get rid of deprecated state.