Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to make the LSP server print more debug logs?
How to make the LSP server print more debug logs? [message #1842696] Tue, 29 June 2021 09:43 Go to next message
Duc Pham is currently offline Duc PhamFriend
Messages: 2
Registered: June 2021
Junior Member
I am trying to create an LSP server for an xtext-based language, following https://www.eclipse.org/Xtext/documentation/340_lsp_support.html.

However, the server does not provide error messages or content assist when it is launched together with an opened file, and the console prints nothing at all. Is there anything I can do to understand better what went wrong?
Re: How to make the LSP server print more debug logs? [message #1842712 is a reply to message #1842696] Tue, 29 June 2021 13:01 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
See also https://www.eclipse.org/forums/index.php?t=msg&th=1106583&goto=1837064&#msg_1837064
Re: How to make the LSP server print more debug logs? [message #1842722 is a reply to message #1842712] Tue, 29 June 2021 15:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
for https://www.eclipse.org/Xtext/documentation/340_lsp_support.html.
please double check
- the content type inherits from text content type, the file extension for the content type has *.extension and the editor you open the file with is generic editor


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to make the LSP server print more debug logs? [message #1842729 is a reply to message #1842722] Wed, 30 June 2021 04:05 Go to previous messageGo to next message
Duc Pham is currently offline Duc PhamFriend
Messages: 2
Registered: June 2021
Junior Member
Sorry, I should clarify that I am seeing the LS being launched, it's just not outputting anything.
Unfortunately, the file produced by `-log debug` is empty as well...

[Updated on: Wed, 30 June 2021 04:05]

Report message to a moderator

Re: How to make the LSP server print more debug logs? [message #1842730 is a reply to message #1842729] Wed, 30 June 2021 04:55 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
then you should change the config to use debug mode (there is a dropdown with run and debug) and either debug for exceptions and or if the server is called (e.g. LanguageServer.initialize)
and again:
triple check the content type config and the correct editor be used.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Multiple xtext DSL projects in one workspace
Next Topic:How to format datatype rules with Formatter2
Goto Forum:
  


Current Time: Thu Mar 28 22:03:38 GMT 2024

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

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

Back to the top