Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Language Server not working, how to investigate?
Xtext Language Server not working, how to investigate? [message #1803796] Sun, 10 March 2019 15:03 Go to next message
Alexandre Lombard is currently offline Alexandre LombardFriend
Messages: 2
Registered: March 2019
Junior Member
Hello,

I'm working with a language based on Xtext (https://github.com/sarl/sarl/) and I want to export a Language Server in order to use this language within Visual Studio Code.
So far I've made changes to the original project to generate the JAR of the Language Server (https://github.com/alexandrelombard/sarl/tree/add_lsp) and I've written the VS Code extension (https://github.com/alexandrelombard/sarl-vscode).

Unfortunately it doesn't work. It's probably my bad but I don't know how to investigate.
The problem could come from the Language Server itself (maybe an issue when generating the JAR?), the client part or the communication between them.

So, is there any way to investigate about it? Also, is it possible to check if the language server is behaving correctly and to test it?
Maybe by manually sending requests to the server?

Thanks in advance.
Re: Xtext Language Server not working, how to investigate? [message #1803919 is a reply to message #1803796] Wed, 13 March 2019 16:19 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13067
Registered: July 2009
Senior Member
i would recommend you to create an extension with socket mode and start server locally in debug mode

https://github.com/itemis/xtext-languageserver-example/tree/master/vscode-extension
https://github.com/itemis/xtext-languageserver-example/blob/master/org.xtext.example.mydsl.ide/src/org/xtext/example/mydsl/ide/RunServer.java

alternatively you could patch the launch script to start server with remote debugging



Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 13 March 2019 16:20]

Report message to a moderator

Previous Topic:Xtext Hello World does not work with Eclipse 2018-12
Next Topic:Xtext cardinality meta model
Goto Forum:
  


Current Time: Wed Aug 21 15:44:45 GMT 2019

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

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

Back to the top