Correct way to initialize language server
See original GitHub issueI am trying to initialize the language server using the below parameters but the ‘settings’ are ignored since the logs are the same even when the trace is changed, not sure if this is the correct approach to do so.
json.put("params", new JSONObject()
.put("rootPath", path)
.put("rootUri", "file:///" + path)
.put("initializationOptions",
new JSONObject()
.put("settings",
new JSONObject().put("java",
new JSONObject()
.put("referenceCodeLens",
new JSONObject().put("enabled", true))
.put("configuration", new JSONObject()
.put("updateBuildConfiguration", "automatic"))
.put("trace", new JSONObject()
.put("server", "verbose"))))));
Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Vivado 2021.1 stuck initializing language server - Xilinx Support
1) Delete the manifest.tcl file. 2) Start Vivado and open a project. 3) Let it freeze trying to open a source file. 4)...
Read more >Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >Implementing a Language Server…How Hard Can It Be??
To connect language server to a plugin first you have to import the language server launcher or create a launcher inside your plugin...
Read more >Language Server Protocol Specification - 3.17
If appropriate the value set of an enumeration is announced by the defining side (e.g. client or server) and transmitted to the other...
Read more >Cannot Initialize Language Server Protocol - Stack Overflow
It seems that your code confirms it, but how to generate the valid json for LSP? Can you give me some instructions? –...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Instead of “Eclipse Debug Adapter Launcher”, can you try using the “Remote Java Application” launcher ? It should be visible from debug configurations. In fact, if you have the JDT-LS launch folder also checked out in the workspace, you should see an option there called ‘jdt.ls.remote.launch’
Closing this, as it’s probably easier now to diagnose any issues when you’re able to debug the language server itself.