Skip to main content



      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 05:21 Go to next message
Eclipse UserFriend
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 05:22 Go to previous messageGo to next message
Eclipse UserFriend
yes and no,
you need to create some stuff manually

see https://github.com/eclipse/xtext-core/pull/390 for an inspiration
Re: Both Eclipse support + LSP with a single project [message #1768591 is a reply to message #1768584] Thu, 20 July 2017 07:29 Go to previous messageGo to next message
Eclipse UserFriend
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 07:31 Go to previous messageGo to next message
Eclipse UserFriend
simply include it e.g. into a vscode or lsp4e with some gluecode?
Re: Both Eclipse support + LSP with a single project [message #1768593 is a reply to message #1768592] Thu, 20 July 2017 07:34 Go to previous messageGo to next message
Eclipse UserFriend
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 07:39 Go to previous message
Eclipse UserFriend
https://github.com/svenefftinge/xtext-lsp-workshop/tree/master/org.xtext.calc.lsp4e
Previous Topic:Derived Type in xtext for Yang
Next Topic:Formatter 2 final and java implementation
Goto Forum:
  


Current Time: Sat Jul 05 05:34:26 EDT 2025

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

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

Back to the top