Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Deploying my DSL to another Eclipse Environment(Problem deploying my DSL)
Deploying my DSL to another Eclipse Environment [message #683449] Mon, 13 June 2011 19:09 Go to next message
Max is currently offline Max
Messages: 3
Registered: June 2011
Junior Member
Hello,

I have created my own DSL using XText and I want to deploy it in a new Eclipse.
The online tutorial deploys its example DSL to the same Eclipse installation where it was developed and that works fine. But when I try to get it up and running on another Eclipse (e.g. for other people to use it) it does not seem to work.
I used Export > Deployable plug-ins and fragments just like in the tutorial but with the other Eclipse's root folder as the destination. When I start that Eclipse I cannot create a project for my DSL (there is no option for that) and when I create a file with the extension specific for my DSL it is not recognized (the syntax is not highlighted).
So my question basically is: what else do I need to do to get my DSL running on other Eclipse installations?

Thanks in advance for any answers
Max
Re: Deploying my DSL to another Eclipse Environment [message #683456 is a reply to message #683449] Mon, 13 June 2011 19:23 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander Nittka
Messages: 1156
Registered: July 2009
Senior Member
Hi,

I would assume that the other Eclipse is missing required plugins. A dsl plugin will not work without the Xtext framework. First guess: install Xtext there.

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 my DSL to another Eclipse Environment [message #683460 is a reply to message #683456] Mon, 13 June 2011 19:57 Go to previous messageGo to next message
Max is currently offline Max
Messages: 3
Registered: June 2011
Junior Member
Hi,

I did install the same Xtext version on that Eclipse before delpoying my DSL (sorry I did not mention that) and then I created a new Project (General > Project) where I added a file with the DSL specific extension. As I said, the DSL syntax was not recognised so I added the Xtext nature to the project but that did not change anything.
Do you have any other suggestion what the problem might be?

Thanks
Max
Re: Deploying my DSL to another Eclipse Environment [message #683463 is a reply to message #683460] Mon, 13 June 2011 20:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6327
Registered: July 2009
Senior Member
Hi,

where did you place the plugins to? ususally this should be the dropins folder - this is the only one that is scanned for new plugins.

~Christiana
Re: Deploying my DSL to another Eclipse Environment [message #683472 is a reply to message #683460] Mon, 13 June 2011 20:08 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
I recommend creating a feature that you export to a p2 repository.
Then install that feature from that repository. When using dropins there
is nothing telling you about what is wrong (missing dependencies etc.)

- henrik

On 6/13/11 9:57 PM, Max wrote:
> Hi,
>
> I did install the same Xtext version on that Eclipse before delpoying my
> DSL (sorry I did not mention that) and then I created a new Project
> (General > Project) where I added a file with the DSL specific
> extension. As I said, the DSL syntax was not recognised so I added the
> Xtext nature to the project but that did not change anything.
> Do you have any other suggestion what the problem might be?
>
> Thanks
> Max
Re: Deploying my DSL to another Eclipse Environment [message #683478 is a reply to message #683463] Mon, 13 June 2011 20:30 Go to previous messageGo to next message
Max is currently offline Max
Messages: 3
Registered: June 2011
Junior Member
Hello,

something magic just happened: I restarted the other Eclipse (which I had done a couple of times today trying to get my DSL to work) and suddenly the DSL file was successfully recognized. It is now getting highlighted and everything.
Unfortunately I do not know how this happened. My guess would be that you were right, Christian, and that the plug-in was not discovered at first. It was in fact in the plugins folder and not in the dropins folder. Still that does not explain why Eclipse suddenly found the plug-in so I guess I am going to experiment with this phenomenon a little to figure out the reason for this behavior.

Max
Re: Deploying my DSL to another Eclipse Environment [message #683542 is a reply to message #683478] Mon, 13 June 2011 23:52 Go to previous message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
Maybe you installed something else using p2, "checking for updates" or
something was executed... or similar.

Dropping something into "plugins" is not a good recipe for success...

- henrik
On 6/13/11 10:30 PM, Max wrote:
> Hello,
>
> something magic just happened: I restarted the other Eclipse (which I
> had done a couple of times today trying to get my DSL to work) and
> suddenly the DSL file was successfully recognized. It is now getting
> highlighted and everything.
> Unfortunately I do not know how this happened. My guess would be that
> you were right, Christian, and that the plug-in was not discovered at
> first. It was in fact in the plugins folder and not in the dropins
> folder. Still that does not explain why Eclipse suddenly found the
> plug-in so I guess I am going to experiment with this phenomenon a
> little to figure out the reason for this behavior.
>
> Max
Previous Topic:org.eclipse.xtext.parsetree for xtext 2.0
Next Topic:Use Xtext-Generated-dsl-parser to write dsl-files.
Goto Forum:
  


Current Time: Wed Oct 01 08:29:21 GMT 2014

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

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