Skip to main content



      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 11:03 Go to next message
Eclipse UserFriend
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 12:19 Go to previous message
Eclipse UserFriend
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

[Updated on: Wed, 13 March 2019 12:20] by Moderator

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


Current Time: Sun Jun 22 05:40:27 EDT 2025

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

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

Back to the top