Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Integrating Xtext generated language server with Generic Editor
Integrating Xtext generated language server with Generic Editor [message #1765602] Mon, 12 June 2017 17:51 Go to next message
Santhosh Kumar is currently offline Santhosh KumarFriend
Messages: 44
Registered: March 2011
Member
I have been trying to integrate Eclipse Oxygen Generic Editor with Language Server generated by Xtext but unfortunately not been able to do it.

Is there an example of that integration that I can refer to, to make some progress? or any other help is much appreciated.
Re: Integrating Xtext generated language server with Generic Editor [message #1765604 is a reply to message #1765602] Mon, 12 June 2017 17:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
I did this 5 month ago and it was not that hard.
Can you give hints what your problem was

https://github.com/itemis/xtext-languageserver-example-lsp4e


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com

[Updated on: Mon, 12 June 2017 17:55]

Report message to a moderator

Re: Integrating Xtext generated language server with Generic Editor [message #1765626 is a reply to message #1765604] Mon, 12 June 2017 21:02 Go to previous messageGo to next message
Santhosh Kumar is currently offline Santhosh KumarFriend
Messages: 44
Registered: March 2011
Member
Thank you, that is what I was looking for.

I tried to create project and follow those same changes. When I start the application, it logs an error stating "Plugin com.test.mydsl, extension org.eclipse.ui.editors: Unknown content-type with id: com.test.mydsl" even though content id is define and is available in the plugin.

Apart from above issue, few questions.

1. So far my understanding is that Language Servers do not deal with syntax highlighting. For that we need to handle separately (that's why I think you have Highlighter class defined in the example)
2. The language servers, if they have to have access to source file via file system, how do they provide assistance to source files which are not saved (being still edited)?

Thank you for your time.
Re: Integrating Xtext generated language server with Generic Editor [message #1765644 is a reply to message #1765626] Tue, 13 June 2017 03:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
(2) all edits incl the dirt yones are sent to the server.
So it works on a dirty documents


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Integrating Xtext generated language server with Generic Editor [message #1765688 is a reply to message #1765644] Tue, 13 June 2017 12:12 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 83
Registered: January 2016
Location: Kiel
Member

You can find an Xtext integration with LSP4E here : https://github.com/svenefftinge/xtext-lsp-workshop
Previous Topic:Attach source code to plug-in: Modeling Workflow Engine 2 Launch
Next Topic:How to use Rules from an inherited grammar ?
Goto Forum:
  


Current Time: Mon Dec 30 14:48:05 GMT 2024

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

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

Back to the top