Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plug-in not loaded when including XSD or EMF
Plug-in not loaded when including XSD or EMF [message #256847] Tue, 29 June 2004 15:54 Go to next message
Eclipse UserFriend
Originally posted by: kharris.unveil.com

I have a plugin that provides an XML editor which extends TextEditor. This
worked fine in Eclipse 2.x. Now that I've moved to Eclipse 3.0, I can no
longer get my editor to work. My editor provides schema completion, which
relies on the EMF and XSD plugins. If I remove those plugins from my plugin
dependencies, my editor comes up fine. Of course, when I trigger the schema
completion, I get a class not found exception in EMF. All of this makes
sense. But when I add my dependencies, (and I've tried this with multiple
versions of Eclipse, XSD, and EMF), as soon as I add either EMF or XSD or
both to my dependencies, and then start up my runtime workspace, my editor
is gone. There are no error messages of any kind - it's just missing. If I
put a break point in my plugin constructor, I never get there. If no one has
an answer for me, can you please tell me where to begin trying to debug
this?

THANK YOU!!! (note the sound of desperation)
Karen
Re: Plug-in not loaded when including XSD or EMF [message #256912 is a reply to message #256847] Tue, 29 June 2004 19:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

This is a bit too vague, what do you mean by "I can no longer get my
editor to work". Do you see your plug-in in the about dialog?
Did you attempt to convert it to be a 3.0 plug-in? Which version of
EMF and XSD are you using?

One way to track down what is going on is to start the eclipse that
should contain your plugin with jave.exe and -console. In this mode you
will get the osgi console, which will allow you to introspect the state
of the platform. For example doing "ss" and then typing return will
display you the list of all plug-ins.

If you plug-ins appears in the "INSTALLED" state, then do "diag" on it
to see why it is INSTALLED instead of RESOLVED.


Karen Harris wrote:
> I have a plugin that provides an XML editor which extends TextEditor. This
> worked fine in Eclipse 2.x. Now that I've moved to Eclipse 3.0, I can no
> longer get my editor to work. My editor provides schema completion, which
> relies on the EMF and XSD plugins. If I remove those plugins from my plugin
> dependencies, my editor comes up fine. Of course, when I trigger the schema
> completion, I get a class not found exception in EMF. All of this makes
> sense. But when I add my dependencies, (and I've tried this with multiple
> versions of Eclipse, XSD, and EMF), as soon as I add either EMF or XSD or
> both to my dependencies, and then start up my runtime workspace, my editor
> is gone. There are no error messages of any kind - it's just missing. If I
> put a break point in my plugin constructor, I never get there. If no one has
> an answer for me, can you please tell me where to begin trying to debug
> this?
>
> THANK YOU!!! (note the sound of desperation)
> Karen
>
>
>
Re: Plug-in not loaded when including XSD or EMF [message #257104 is a reply to message #256912] Wed, 30 June 2004 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kharris.unveil.com

You're brilliant! Some progress now...

Okay, sorry if I'm being vague. My plugin.xml specifies that my editor
should be associated with a particular file suffix, so when I bring up my
runtime workspace, if I right click on a file of the correct type in my
navigator, I can open the file with my editor. When I add xsd and emf to my
dependency list in the plugin.xml and bring up my runtime workspace, the
editor is missing from the context menu in the navigator, and if I try to
set up my file associations in the preferences, the editor is not in the
list. I remove the dependencies, start up my runtime workspace, and the
editor comes up fine. Of course, this is not sufficient, since I have to
include the dependencies to get some other functionality working in the
editor.

So I added -console in my debug menu and got the osgi console. My
misbehaving plugin is installed but not resolved, and when I do a diag on
it, I see that it's missing dependencies on the WRONG versions of the
plugins:

update@/C:/eclipse3/eclipse/workspace/com.unveil.studio.edit ors.ucml/ [1065]

Missing required bundle org.eclipse.emf.ecore_0.0.0.

Missing required bundle org.eclipse.xsd_0.0.0.

I have no idea why it's looking for versions 0.0.0. I've got the 6/28/04
builds of eclipse, xsd, and emf, which translates to eclipse 3, and emf and
xsd 2.0.0. I've searched all the files in my workspace for xsd_0.0.0 and
there's no reference to version 0.0.0, so it's appending the suffix
presumably based on some other missing version information. I feel I'm
getting very close to a solution, but if you can think of why I'm getting
the wrong versions here, please let me know. Thank you VERY VERY much!

Karen


"Pascal Rapicault" <pascal@ibm.canada> wrote in message
news:cbstds$2mu$1@eclipse.org...
> This is a bit too vague, what do you mean by "I can no longer get my
> editor to work". Do you see your plug-in in the about dialog?
> Did you attempt to convert it to be a 3.0 plug-in? Which version of
> EMF and XSD are you using?
>
> One way to track down what is going on is to start the eclipse that
> should contain your plugin with jave.exe and -console. In this mode you
> will get the osgi console, which will allow you to introspect the state
> of the platform. For example doing "ss" and then typing return will
> display you the list of all plug-ins.
>
> If you plug-ins appears in the "INSTALLED" state, then do "diag" on it
> to see why it is INSTALLED instead of RESOLVED.
>
>
> Karen Harris wrote:
> > I have a plugin that provides an XML editor which extends TextEditor.
This
> > worked fine in Eclipse 2.x. Now that I've moved to Eclipse 3.0, I can no
> > longer get my editor to work. My editor provides schema completion,
which
> > relies on the EMF and XSD plugins. If I remove those plugins from my
plugin
> > dependencies, my editor comes up fine. Of course, when I trigger the
schema
> > completion, I get a class not found exception in EMF. All of this makes
> > sense. But when I add my dependencies, (and I've tried this with
multiple
> > versions of Eclipse, XSD, and EMF), as soon as I add either EMF or XSD
or
> > both to my dependencies, and then start up my runtime workspace, my
editor
> > is gone. There are no error messages of any kind - it's just missing. If
I
> > put a break point in my plugin constructor, I never get there. If no one
has
> > an answer for me, can you please tell me where to begin trying to debug
> > this?
> >
> > THANK YOU!!! (note the sound of desperation)
> > Karen
> >
> >
> >
Re: Plug-in not loaded when including XSD or EMF (FIXED!) [message #257214 is a reply to message #257104] Wed, 30 June 2004 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: kharris.unveil.com

The osgi console gave me all the information I needed. My xsd and emf.ecore
plugins were not being loaded due to my debug configuration, which did not
include the base emf plugin. Once I added that one plugin, the xsd and
emf.ecore plugins could be resolved, which in turn allowed my editor plugin
to be resolved. Thanks for all your help!

"Karen Harris" <kharris@unveil.com> wrote in message
news:cbugta$6br$1@eclipse.org...
> Okay, sorry if I'm being vague. My plugin.xml specifies that my editor
> should be associated with a particular file suffix, so when I bring up my
> runtime workspace, if I right click on a file of the correct type in my
> navigator, I can open the file with my editor. When I add xsd and emf to
my
> dependency list in the plugin.xml and bring up my runtime workspace, the
> editor is missing from the context menu in the navigator, and if I try to
> set up my file associations in the preferences, the editor is not in the
> list. I remove the dependencies, start up my runtime workspace, and the
> editor comes up fine. Of course, this is not sufficient, since I have to
> include the dependencies to get some other functionality working in the
> editor.
>
> So I added -console in my debug menu and got the osgi console. My
> misbehaving plugin is installed but not resolved, and when I do a diag on
> it, I see that it's missing dependencies on the WRONG versions of the
> plugins:
>
> update@/C:/eclipse3/eclipse/workspace/com.unveil.studio.edit ors.ucml/
[1065]
>
> Missing required bundle org.eclipse.emf.ecore_0.0.0.
>
> Missing required bundle org.eclipse.xsd_0.0.0.
>
> I have no idea why it's looking for versions 0.0.0. I've got the 6/28/04
> builds of eclipse, xsd, and emf, which translates to eclipse 3, and emf
and
> xsd 2.0.0. I've searched all the files in my workspace for xsd_0.0.0 and
> there's no reference to version 0.0.0, so it's appending the suffix
> presumably based on some other missing version information. I feel I'm
> getting very close to a solution, but if you can think of why I'm getting
> the wrong versions here, please let me know. Thank you VERY VERY much!
>
> Karen
>
>
> "Pascal Rapicault" <pascal@ibm.canada> wrote in message
> news:cbstds$2mu$1@eclipse.org...
> > This is a bit too vague, what do you mean by "I can no longer get my
> > editor to work". Do you see your plug-in in the about dialog?
> > Did you attempt to convert it to be a 3.0 plug-in? Which version of
> > EMF and XSD are you using?
> >
> > One way to track down what is going on is to start the eclipse that
> > should contain your plugin with jave.exe and -console. In this mode you
> > will get the osgi console, which will allow you to introspect the state
> > of the platform. For example doing "ss" and then typing return will
> > display you the list of all plug-ins.
> >
> > If you plug-ins appears in the "INSTALLED" state, then do "diag" on it
> > to see why it is INSTALLED instead of RESOLVED.
> >
> >
> > Karen Harris wrote:
> > > I have a plugin that provides an XML editor which extends TextEditor.
> This
> > > worked fine in Eclipse 2.x. Now that I've moved to Eclipse 3.0, I can
no
> > > longer get my editor to work. My editor provides schema completion,
> which
> > > relies on the EMF and XSD plugins. If I remove those plugins from my
> plugin
> > > dependencies, my editor comes up fine. Of course, when I trigger the
> schema
> > > completion, I get a class not found exception in EMF. All of this
makes
> > > sense. But when I add my dependencies, (and I've tried this with
> multiple
> > > versions of Eclipse, XSD, and EMF), as soon as I add either EMF or XSD
> or
> > > both to my dependencies, and then start up my runtime workspace, my
> editor
> > > is gone. There are no error messages of any kind - it's just missing.
If
> I
> > > put a break point in my plugin constructor, I never get there. If no
one
> has
> > > an answer for me, can you please tell me where to begin trying to
debug
> > > this?
> > >
> > > THANK YOU!!! (note the sound of desperation)
> > > Karen
> > >
> > >
> > >
>
>
Previous Topic:Change Debug Watch Expression
Next Topic:no plugins
Goto Forum:
  


Current Time: Wed Jun 04 23:13:01 EDT 2025

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

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

Back to the top