Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Deploying plugin succeeds, editor does not show(cannot open .myDSL file with MyDSL Editor, not an available option..)
Deploying plugin succeeds, editor does not show [message #546564] Tue, 13 July 2010 11:46 Go to next message
Marten Sijtema is currently offline Marten SijtemaFriend
Messages: 67
Registered: November 2009
Member
Hello,

I created a small language with XText, and deployed successfully. I do not have a code generator (just a parser is enough) so I did this:
File > Export > Deployable Plugins & fragments 


...and checked TWO projects, mydomain.myDSL and mydomain.myDSL.ui

This generates fine, and the .jars are actually in my plugin directory.

If I restart Eclipse however, and want to open someFile.anno (.anno is my extension), I cannot choose the Anno Editor.

What am I doing wrong and how can I diagnose the problem? It is really a simple language, with a very small grammar, so not even doing complicated things...

Using Xtext 1.0

Thanks in advance, any help is very much appreciated.


My company: Sytematic, building business software from models.
Re: Deploying plugin succeeds, editor does not show [message #546570 is a reply to message #546564] Tue, 13 July 2010 11:54 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

the fact that there are jars in the plugin directory does not mean that
they are registered (check Eclipse settings for the installed plugins. I
bet your editor plugins are not among them). The safest way is to
install them via an update site (create a feature for your plugins,
create an update site for that feature, install from it). Alternatively
you could try if putting them in the dropins-folder works for you.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Deploying plugin succeeds, editor does not show [message #546594 is a reply to message #546570] Tue, 13 July 2010 13:53 Go to previous messageGo to next message
Marten Sijtema is currently offline Marten SijtemaFriend
Messages: 67
Registered: November 2009
Member
Dropins solution does not work, will now try the other one. Why is this not documented btw? XText suggests that this is the way to go in the getting started guide shown here: http://wiki.eclipse.org/Xtext/GettingStarted#Deployment



My company: Sytematic, building business software from models.
Re: Deploying plugin succeeds, editor does not show [message #546607 is a reply to message #546594] Tue, 13 July 2010 14:14 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

> http://wiki.eclipse.org/Xtext/GettingStarted#Deployment

actually, I've never deployed an editor to my Eclipse that way before.
However, for me it works as described. Did you run your editor (Run As
Eclipse Application) before deploying it and did it work then?

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Deploying plugin succeeds, editor does not show [message #546612 is a reply to message #546607] Tue, 13 July 2010 14:34 Go to previous messageGo to next message
Marten Sijtema is currently offline Marten SijtemaFriend
Messages: 67
Registered: November 2009
Member
If i do the 'run as eclipse app' thing, it works fine in the spawned eclipse instance. That is so weird for me...

I am wondering now why it is not working... There are no errors in the export process..


My company: Sytematic, building business software from models.
[SOLVED] Deploying plugin succeeds, editor does not show [message #546637 is a reply to message #546564] Tue, 13 July 2010 15:28 Go to previous messageGo to next message
Marten Sijtema is currently offline Marten SijtemaFriend
Messages: 67
Registered: November 2009
Member
Alright, out of pure frustration I just retried it and now it suddenly works! Very very strange. Anyway, I am happy now..

Weird...


My company: Sytematic, building business software from models.
Re: [SOLVED] Deploying plugin succeeds, editor does not show [message #654401 is a reply to message #546637] Tue, 15 February 2011 15:31 Go to previous messageGo to next message
Fy Za is currently offline Fy ZaFriend
Messages: 245
Registered: March 2010
Senior Member
Marten Sijtema wrote on Tue, 13 July 2010 11:28
Alright, out of pure frustration I just retried it and now it suddenly works! Very very strange. Anyway, I am happy now..

Weird...


Please what is the solution??
thanks
Re: Deploying plugin succeeds, editor does not show [message #654458 is a reply to message #546612] Tue, 15 February 2011 21:16 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Make sure you have
- the same plugins in the development Eclipse as in the deployment Eclipse
- the build.properties of your Xtext plug-ins contain all needed folders
(all except the source folders) and files
- the log does not show another configuration error

Am 13.07.10 16:34, schrieb Marten Sijtema:
> If i do the 'run as eclipse app' thing, it works fine in the spawned
> eclipse instance. That is so weird for me...
>
> I am wondering now why it is not working... There are no errors in the
> export process..


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Deploying plugin succeeds, editor does not show [message #657844 is a reply to message #546564] Fri, 04 March 2011 10:24 Go to previous messageGo to next message
Stefan Missing name is currently offline Stefan Missing nameFriend
Messages: 13
Registered: May 2010
Junior Member
Hi,

I'm facing the same problems as described in the original post. Plugin deployment in the runtime instance works fine. But when I export my three projects as plugins into the plugins directory, they do not get registered.
There seems to be no difference between the plugins in development and deployment Eclipse (except for my DSL plugins, of course). All three build.properties include every file and folder in their binary build (except for the src folders). Configuration errors did not pop up anywhere.
Any help would be greatly appreciated, as I've already spent a whole day on this problem.
Thanks!
Re: Deploying plugin succeeds, editor does not show [message #657875 is a reply to message #657844] Fri, 04 March 2011 12:27 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
You could use the Plug-in Registry View to see if Eclipse has recognized
the plug-ins.
The logfile (<workspace>/.metadata/.log) could also provide a hint.
Usually it's a missing dependency.

Am 04.03.11 11:24, schrieb Stefan:
> Hi,
>
> I'm facing the same problems as described in the original post. Plugin
> deployment in the runtime instance works fine. But when I export my
> three projects as plugins into the plugins directory, they do not get
> registered.
> There seems to be no difference between the plugins in development and
> deployment Eclipse (except for my DSL plugins, of course). All three
> build.properties include every file and folder in their binary build
> (except for the src folders). Configuration errors did not pop up anywhere.
> Any help would be greatly appreciated, as I've already spent a whole day
> on this problem.
> Thanks!


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Deploying plugin succeeds, editor does not show [message #657880 is a reply to message #657875] Fri, 04 March 2011 12:54 Go to previous messageGo to next message
Stefan Missing name is currently offline Stefan Missing nameFriend
Messages: 13
Registered: May 2010
Junior Member
Jan Koehnlein wrote on Fri, 04 March 2011 13:27
You could use the Plug-in Registry View to see if Eclipse has recognized
the plug-ins.
The logfile (<workspace>/.metadata/.log) could also provide a hint.
Usually it's a missing dependency.



Hi, thank you for your help.
The .log only complains about a missing feature.xml for my SVN plugin. I don't think they are related.
I already used the Plugin Registry view to check whether the plugins are registered (they are not). The registered Plugins in development and deployment eclipse are the same, so I would think there are no dependencies missing.
Re: Deploying plugin succeeds, editor does not show [message #658212 is a reply to message #657880] Mon, 07 March 2011 12:30 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
I guess you have to debug that the PDE way: Create a target platform
with the required plugins and run it in the debugger. Put some
breakpoints, e.g. in the activator of the language plugin or in the
XtextEditor.


Am 04.03.11 13:54, schrieb Stefan:
> Jan Koehnlein wrote on Fri, 04 March 2011 13:27
>> You could use the Plug-in Registry View to see if Eclipse has
>> recognized the plug-ins.
>> The logfile (<workspace>/.metadata/.log) could also provide a hint.
>> Usually it's a missing dependency.
>
>
> Hi, thank you for your help.
> The .log only complains about a missing feature.xml for my SVN plugin. I
> don't think they are related.
> I already used the Plugin Registry view to check whether the plugins are
> registered (they are not). The registered Plugins in development and
> deployment eclipse are the same, so I would think there are no
> dependencies missing.


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Customizing generated java classes
Next Topic:Hook for creation and destruction of EObject
Goto Forum:
  


Current Time: Fri Apr 26 09:52:25 GMT 2024

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

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

Back to the top