Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Both Eclipse support + LSP with a single project
Both Eclipse support + LSP with a single project [message #1768583] Thu, 20 July 2017 09:21 Go to next message
Alain Bernard is currently offline Alain BernardFriend
Messages: 15
Registered: November 2013
Junior Member

Hello,

As we have many clients in many languages, we would like to take benefit of LSP to provide support for a specific file format.
But meanwhile we would like to be able to reuse the generated EMF model and validation mechanisms provided by Xtext out of the box in our Eclipse-based workbench. Is there a way to combine the two in an efficient way?
Is it possible for example to generate the Xtext projects for Eclipse and then use them (apart the *.ui one) for LSP (or the opposite) ?

Alain
Re: Both Eclipse support + LSP with a single project [message #1768584 is a reply to message #1768583] Thu, 20 July 2017 09:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
yes and no,
you need to create some stuff manually

see https://github.com/eclipse/xtext-core/pull/390 for an inspiration


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Both Eclipse support + LSP with a single project [message #1768591 is a reply to message #1768584] Thu, 20 July 2017 11:29 Go to previous messageGo to next message
Alain Bernard is currently offline Alain BernardFriend
Messages: 15
Registered: November 2013
Junior Member

Thanks for the link! I follow the modifications proposed and ended up with a myDsl-ls.jar which is about 13MB, so it seems it includes all required stuff.
Any advice on how I can test if this JAR does the job actually?

If I can bring my2c, I think that the patch proposed on GitHub would be very useful for next Xtext releases :)
Re: Both Eclipse support + LSP with a single project [message #1768592 is a reply to message #1768591] Thu, 20 July 2017 11:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
simply include it e.g. into a vscode or lsp4e with some gluecode?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Both Eclipse support + LSP with a single project [message #1768593 is a reply to message #1768592] Thu, 20 July 2017 11:34 Go to previous messageGo to next message
Alain Bernard is currently offline Alain BernardFriend
Messages: 15
Registered: November 2013
Junior Member

Yes indeed it was obvious. I'll check some tutorials on lsp4e.
Thanks for your support.
Re: Both Eclipse support + LSP with a single project [message #1768595 is a reply to message #1768593] Thu, 20 July 2017 11:39 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
https://github.com/svenefftinge/xtext-lsp-workshop/tree/master/org.xtext.calc.lsp4e

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Derived Type in xtext for Yang
Next Topic:Formatter 2 final and java implementation
Goto Forum:
  


Current Time: Sun Sep 19 23:53:34 GMT 2021

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

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

Back to the top