Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext, eclipse Che and outline view(Xtext, eclipse Che and outline view)
Xtext, eclipse Che and outline view [message #1739814] Thu, 04 August 2016 16:53 Go to next message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member
Hi ,
regarding the in progress work of allowing xtext DSL's to be supported with eclipse Che, I was wondering if an outline view will be available (like the one available in the Eclipse IDE)?
Thanks,
Neil
Re: Xtext, eclipse Che and outline view [message #1753043 is a reply to message #1739814] Wed, 01 February 2017 12:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i have blogged on this topic here: https://blogs.itemis.com/en/how-to-get-started-with-xtext-language-servers-and-che

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext, eclipse Che and outline view [message #1753084 is a reply to message #1753043] Wed, 01 February 2017 17:57 Go to previous messageGo to next message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member
Thanks Christian,
I am insterested in LSP also and will try out your tutorial.
Regarding 'outline view' I mean the visual representation of the Abstract Syntax Tree that can be viewed in the eclipse desktop IDE for programs written in langauges defined by xtext (such as Xcore). I didt see the 'outline view' it mentioned in the blog (apologies if I didnt spot it!)
I think if such a feature was available in Che it would probably come from interaction with the EMF EObject API and not the LSP API.
Thanks,
Neil
Re: Xtext, eclipse Che and outline view [message #1753105 is a reply to message #1753084] Wed, 01 February 2017 20:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
xtext che support is via lsp only => only what the lsp, xtext and che all together are capable of would work

so all that i can see so far is lsp document symbol service a kind of flat outline.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext, eclipse Che and outline view [message #1753263 is a reply to message #1753105] Fri, 03 February 2017 08:29 Go to previous messageGo to next message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member
Thanks Christian,
I am interested in developing some visual tooling for Xtext in Che. Some visual tooling exists for Xtext with Sirius, integration with Che will be quite different technically of course. Since I am currently looking at integration approaches of EMF and Che I was hoping that I could re-use some of this. In a quick informal chat with some of the Typefox folk at EclipseCon 2016 it was suggested that using the EMF/EObject API for visual representation of the Xtext AST would be possible from Che (while still using LSP for code completion etc). I understand that using the EMF API is not the supported or suggested approach for integrating che and text, do you think it is possible to use it? alternatively If I can use LSP to get all the information I need about the Abstract Syntax tree structure (So that I can display it visually) then I may consider using the LSP API instead.
Regards,
Neil

Re: Xtext, eclipse Che and outline view [message #1753264 is a reply to message #1753263] Fri, 03 February 2017 08:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i assume you need to extend LSP to do so. the client never gets an AST

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext, eclipse Che and outline view [message #1753294 is a reply to message #1753264] Fri, 03 February 2017 12:49 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 83
Registered: January 2016
Location: Kiel
Member

Hi Neil,

I don't know with whom of my colleagues you have talked, but you would indeed need to extend the LSP with additional functions if you want to expose AST information.
It's not hard but needs to be done on both sides (Che and Xtext). LSP4J supports this (see https://github.com/eclipse/lsp4j/blob/master/documentation/jsonrpc.md).
Also the Xtext LS allows for language specific extensions, here is an example:
https://github.com/eclipse/xtext-core/blob/master/org.eclipse.xtext.ide.tests/testlang-src/org/eclipse/xtext/ide/tests/testlanguage/ide/TestLangLSPExtension.xtend

hth,
Sven
Re: Xtext, eclipse Che and outline view [message #1753333 is a reply to message #1753294] Sat, 04 February 2017 01:24 Go to previous message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member
Thanks for the clarification. I will have a look into extending the LSP or creating a language specific extension.
Regards,
Neil
Previous Topic:Mutliline string concatenation
Next Topic:Cross Reference handling in Inferrer
Goto Forum:
  


Current Time: Tue Apr 16 23:05:02 GMT 2024

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

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

Back to the top