Skip to main content



      Home
Home » Modeling » TMF (Xtext) » LSP Support: Multiple Languages in one Server
LSP Support: Multiple Languages in one Server [message #1860257] Tue, 25 July 2023 09:13 Go to next message
Eclipse UserFriend
Hello,

we extended the LSP Example "Greetings" with a second language "mydsl2".
The code for the second language resides in the same projects as "mydsl", which are org.xtext.example.mydsl and org.xtext.example.mydsl.ide.
After that, language support for mydsl files stops working. The service loader only finds the ISetup of mydsl2.

According to https://github.com/eclipse/xtext-core/issues/989 and https://www.eclipse.org/forums/index.php/t/1096655/ this should work.

How can we fix this problem?

Best regards,
Sebastian

Re: LSP Support: Multiple Languages in one Server [message #1860258 is a reply to message #1860257] Tue, 25 July 2023 09:49 Go to previous messageGo to next message
Eclipse UserFriend
how do you setup your projects.
how does the service loader file look like?
Re: LSP Support: Multiple Languages in one Server [message #1860265 is a reply to message #1860258] Wed, 26 July 2023 04:30 Go to previous messageGo to next message
Eclipse UserFriend
We have a "core" project which contains all the languages (+ ide) and their genereated code.
The service loader file contains only the last generated IdeSetup.

How can we add all IdeSetups?
Re: LSP Support: Multiple Languages in one Server [message #1860268 is a reply to message #1860265] Wed, 26 July 2023 05:47 Go to previous messageGo to next message
Eclipse UserFriend
Please debug the workflow fragment that produces
The service loader file
Re: LSP Support: Multiple Languages in one Server [message #1860269 is a reply to message #1860268] Wed, 26 July 2023 05:48 Go to previous messageGo to next message
Eclipse UserFriend
How does your workflow look like
Re: LSP Support: Multiple Languages in one Server [message #1860385 is a reply to message #1860269] Wed, 02 August 2023 09:35 Go to previous messageGo to next message
Eclipse UserFriend
We have multiple workflows - one for each language, executed by Maven. The generated service loader file contains only one ISetup.
Re: LSP Support: Multiple Languages in one Server [message #1860392 is a reply to message #1860385] Wed, 02 August 2023 18:03 Go to previous messageGo to next message
Eclipse UserFriend
You should have one workflow with two languages sections
Re: LSP Support: Multiple Languages in one Server [message #1860509 is a reply to message #1860392] Thu, 10 August 2023 10:44 Go to previous message
Eclipse UserFriend
Thank you, that worked!
Previous Topic:Eclipse DSL: Change formatter for projects
Next Topic:Efficiently getting EObjects of a particular type given only their parent Xtext+Sirius IProject
Goto Forum:
  


Current Time: Mon Apr 21 10:40:55 EDT 2025

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

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

Back to the top