Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:13 Go to next message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
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 13:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
how do you setup your projects.
how does the service loader file look like?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP Support: Multiple Languages in one Server [message #1860265 is a reply to message #1860258] Wed, 26 July 2023 08:30 Go to previous messageGo to next message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
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 09:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
Please debug the workflow fragment that produces
The service loader file


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP Support: Multiple Languages in one Server [message #1860269 is a reply to message #1860268] Wed, 26 July 2023 09:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
How does your workflow look like

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP Support: Multiple Languages in one Server [message #1860385 is a reply to message #1860269] Wed, 02 August 2023 13:35 Go to previous messageGo to next message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
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 22:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
You should have one workflow with two languages sections

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: LSP Support: Multiple Languages in one Server [message #1860509 is a reply to message #1860392] Thu, 10 August 2023 14:44 Go to previous message
Sebastian Waldhauser is currently offline Sebastian WaldhauserFriend
Messages: 24
Registered: March 2022
Junior Member
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: Thu Dec 26 19:31:47 GMT 2024

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

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

Back to the top